Fix problem with clonevm in vmware when target uses the legacy vm.storage syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13049 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5a0b29f758
commit
2f18ec4f7f
@ -2188,6 +2188,7 @@ sub clonevms {
|
||||
my $url;
|
||||
if ($tablecfg{vm}->{$_}->[0]->{storage}) {
|
||||
$url=$tablecfg{vm}->{$_}->[0]->{storage};
|
||||
$url =~ s/=.*//;
|
||||
} else {
|
||||
$url=$masterref->{storage};
|
||||
}
|
||||
@ -2304,6 +2305,7 @@ sub clone_vms_from_master {
|
||||
$destination=$masterent->{storage};
|
||||
$vment->{storage}=$destination;
|
||||
}
|
||||
$destination =~ s/=.*//;
|
||||
my $placement_resources=get_placement_resources(hyp=>$hyp,cluster=>$cluster,destination=>$destination);
|
||||
my $pool=$placement_resources->{pool};
|
||||
my $dstore=$placement_resources->{datastore};
|
||||
|
Loading…
x
Reference in New Issue
Block a user