mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	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:
		| @@ -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)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user