Major version: snapshots preserved, clone downtime reduced, bugs fixed
This commit is contained in:
parent
090986b0b8
commit
4a1297535c
|
@ -1,4 +1,4 @@
|
|||
vn-vmware (1.0.39) stable; urgency=low
|
||||
vn-vmware (1.1.0) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
20
vn-vmware.pl
20
vn-vmware.pl
|
@ -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,
|
||||
|
|
Reference in New Issue