diff --git a/xCAT-server/lib/xcat/plugins/conserver.pm b/xCAT-server/lib/xcat/plugins/conserver.pm index 59089468c..a42bb2177 100644 --- a/xCAT-server/lib/xcat/plugins/conserver.pm +++ b/xCAT-server/lib/xcat/plugins/conserver.pm @@ -73,12 +73,18 @@ sub preprocess_request { } if ($::LOCAL) { if ($noderange && @$noderange>0) { - $callback->({data=>"Invalide option -l or --local when there are nodes specofied."}); + $callback->({data=>"Invalide option -l or --local when there are nodes specified."}); $request = {}; return; } } - + + if(exists($ARGV[0])){ + $callback->({data=>"Invalide option $ARGV[0] specified."}); + $request = {}; + return; + } + # get site master my $master=xCAT::Utils->get_site_Master(); if (!$master) { $master=hostname(); }