Major version: snapshots preserved, clone downtime reduced, bugs fixed

This commit is contained in:
Juan 2018-11-12 23:57:25 +01:00
parent 090986b0b8
commit 4a1297535c
2 changed files with 10 additions and 12 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-vmware (1.0.39) stable; urgency=low
vn-vmware (1.1.0) stable; urgency=low
* Initial Release.

View File

@ -596,6 +596,15 @@ sub clone_machine {
$dst_tmp_name = "$dst_name.tmp";
log_message "Machine '$dst_name' already exists, cloning to '$dst_tmp_name'.";
my $tmp_vm = Vim::find_entity_view(
view_type => 'VirtualMachine',
filter => {'name' => $dst_tmp_name}
);
if ($tmp_vm) {
destroy_machine($tmp_vm);
}
}
# If MAC is not especified, it is generated by VMWare
@ -730,17 +739,6 @@ sub clone_machine {
# Gathering specifications and cloning
if ($original_vm) {
my $tmp_vm = Vim::find_entity_view(
view_type => 'VirtualMachine',
filter => {'name' => $dst_tmp_name}
);
if ($tmp_vm) {
destroy_machine($tmp_vm);
}
}
log_message "Cloning machine.";
my $clone_spec = VirtualMachineCloneSpec->new(
powerOn => false,