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/trunk@13050 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -2196,6 +2196,7 @@ sub clonevms { | ||||
|             my $url; | ||||
|             if ($tablecfg{vm}->{$_}->[0]->{storage}) { | ||||
|                 $url=$tablecfg{vm}->{$_}->[0]->{storage}; | ||||
| 				$url =~ s/=.*//; | ||||
|             } else { | ||||
|                 $url=$masterref->{storage}; | ||||
|             } | ||||
| @@ -2312,6 +2313,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}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user