add one limitation for rackenv. It couldn't be used when the nodes' hcp is hmc
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9518 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -56,6 +56,13 @@ sub parse_args { | ||||
|     if ( !defined( $cmd )) { | ||||
|         return(usage( "Invalid command: $ARGV[0]" )); | ||||
|     } | ||||
|       | ||||
|     if($ARGV[0] =~ /^rackenv$/) { | ||||
|         if($request->{hwtype} =~ /^hmc$/) { | ||||
|             return(usage( "Command $ARGV[0] is not valid when the nodes' hcp is hmc" )); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     #################################### | ||||
|     # Check for an extra argument | ||||
|     #################################### | ||||
|   | ||||
		Reference in New Issue
	
	Block a user