mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	Changed $propVals to $propVals->{'mac'} because in the if conditional, $propVals can have a value while $propVals->{'mac'} can be null.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1805,7 +1805,7 @@ sub cloneVM { | ||||
| 		my $generateNew = 0;    # Flag to generate new MACID | ||||
| 		@propNames = ('mac'); | ||||
| 		$propVals = xCAT::zvmUtils->getNodeProps( 'mac', $_, @propNames ); | ||||
| 		if ( !$propVals ) { | ||||
| 		if ( !$propVals->{'mac'} ) { | ||||
|  | ||||
| 			# If no MACID is found, get one | ||||
| 			$macId = xCAT::zvmUtils->getMacID($tgtHcp); | ||||
| @@ -1970,7 +1970,7 @@ sub cloneVM { | ||||
| 	my $srcMac; | ||||
| 	@propNames = ('mac'); | ||||
| 	$propVals = xCAT::zvmUtils->getNodeProps( 'mac', $sourceNode, @propNames ); | ||||
| 	if ($propVals) { | ||||
| 	if ($propVals->{'mac'}) { | ||||
|  | ||||
| 		# Get MAC address | ||||
| 		$srcMac = $propVals->{'mac'}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user