mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	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