From 60758604adc06f0523290bcd56da5a1eb8cae8ef Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 8 Jun 2012 13:35:13 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/esx.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 06fdb86fd..9b250df58 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -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};