mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	adding check for -n to 2.8.3
This commit is contained in:
		@@ -868,6 +868,14 @@ sub check_options
 | 
			
		||||
        return 1;
 | 
			
		||||
     }
 | 
			
		||||
 | 
			
		||||
    # check to see if -n is listed with any other options which is not allowed
 | 
			
		||||
    if ($::opt_n and ($::opt_a || $::opt_d || $::opt_q || $::opt_r || $::opt_l || $statements)) {
 | 
			
		||||
        my $rsp = {};
 | 
			
		||||
        $rsp->{data}->[0] = "The -n option cannot be used with other options.";
 | 
			
		||||
        xCAT::MsgUtils->message("E", $rsp, $callback, 1);
 | 
			
		||||
        return 1;
 | 
			
		||||
     }
 | 
			
		||||
 | 
			
		||||
    unless (($req->{arg} and (@{$req->{arg}}>0)) or $req->{node})
 | 
			
		||||
    {
 | 
			
		||||
        my $rsp = {};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user