mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	fix for bug 2974299: check spaces in the noderange syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -284,12 +284,22 @@ sub processArgs | ||||
|     # | ||||
|  | ||||
|     #  - put attr=val operands in ATTRS hash | ||||
|     my $noderangespace = 0; | ||||
|     while (my $a = shift(@ARGV)) | ||||
|     { | ||||
|  | ||||
|         if (!($a =~ /=/)) | ||||
|         { | ||||
|  | ||||
|             # can not have spaces in the noderange | ||||
|             if ($noderangespace) | ||||
|             { | ||||
|                my $rsp; | ||||
|                $rsp->{data}->[0] = "noderange can not contain spaces."; | ||||
|                xCAT::MsgUtils->message("E", $rsp, $::callback); | ||||
|                return 2; | ||||
|             } | ||||
|             $noderangespace++; | ||||
|             # the first arg could be a noderange or a list of args | ||||
|             if (($::opt_t) && ($::opt_t ne 'node')) | ||||
|             { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user