-Fix errors in clone_vms_from_Master in esx plugin

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7356 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-09-03 20:08:41 +00:00
parent df5f195e84
commit b3f7b2b499

View File

@ -1686,14 +1686,14 @@ sub clonevms {
if ($target) {
return promote_vm_to_master(node=>$nodes->[0],target=>$target,force=>$force,detach=>$detach,hyp=>$hyp,url=>$url,mastername=>$mastername);
} elsif ($base) {
return clone_vms_from_master(nodes=>$nodes,base=>$base,detach=>$detach,hyp=>$hyp,mastername=>$mastername,masterent=>$masterref);
return clone_vms_from_master(nodes=>$nodes,base=>$base,detach=>$detach,hyp=>$hyp,mastername=>$base,masterent=>$masterref);
}
}
sub clone_vms_from_master {
my %args = @_;
my $mastername=$args{mastername};
my $hyp = $args{hyp};
my $regex=qr/^mastername\z/;
my $regex=qr/^$mastername\z/;
my @nodes=@{$args{nodes}};
my $node;
my $masterviews = $hyphash{$hyp}->{conn}->find_entity_views(view_type => 'VirtualMachine',filter=>{'config.name'=>$regex});