mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	check for input of multiple internal postscript names
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14016 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -464,11 +464,22 @@ sub preprocess_updatenode | ||||
|                 { | ||||
|                     my $rsp = {}; | ||||
|                     $rsp->{data}->[0] = | ||||
|                       "The postcript $installdir/postscripts/$aa[0] does not exist."; | ||||
|                       "The postscript $installdir/postscripts/$aa[0] does not exist."; | ||||
|                     $callback->($rsp); | ||||
|                     return; | ||||
|                 } | ||||
|               } | ||||
|             }  else {  | ||||
|                # can only input one internal postscript  on call | ||||
|                # updatenode -P defaults-postscripts-start-here | ||||
|                my $arraySize = @posts; | ||||
|                if ($arraySize > 1) {  # invalid | ||||
|                   my $rsp = {}; | ||||
|                   $rsp->{data}->[0] = | ||||
|                       "Only one internal postscript can be used with -P. Postscripts input were as follows:$postscripts"; | ||||
|                   $callback->($rsp); | ||||
|                   return; | ||||
|                } | ||||
|             } | ||||
|        } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user