Fix bug 2726344

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ellen56 2009-04-03 07:10:55 +00:00
parent b89478cd64
commit a47143fedf

View File

@ -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(); }