On clonevm, assume URL matches source VM if not specified in a clonevm -t

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-05-01 16:46:48 +00:00
parent 6c8e21ef62
commit 3ebf425b4c

View File

@ -1996,16 +1996,18 @@ sub clonevms {
}
}
} elsif ($target) {
if ($url =~ m!/!) {
$url=$target;
$url =~ s!/([^/]*)\z!!;
$url =~ s!/([^/]*)\z!!;
$mastername=$1;
unless ($url) {
} else {
$url = $tablecfg{vm}->{$nodes->[0]}->[0]->{storage};
$url =~ s/.*\|//;
$url =~ s/=(.*)//;
$url =~ s/,.*//;
}
$newdatastores->{$url}=[$nodes->[0]];
$mastername=$target
}
$newdatastores->{$url}=[$nodes->[0]];
}
if ($hyp) {
unless (validate_datastore_prereqs($nodes,$hyp,$newdatastores)) {