add check for no input to nodestat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2443 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c5eb054b91
commit
bd30724e82
@ -96,9 +96,14 @@ sub preprocess_request
|
||||
}
|
||||
else
|
||||
{ # non node options like -h
|
||||
my $args=$req->{arg};
|
||||
@ARGV=();
|
||||
@ARGV=@{$args};
|
||||
my $args=$req->{arg};
|
||||
if ($args) {
|
||||
@ARGV = @{$args};
|
||||
} else {
|
||||
&usage($cb);
|
||||
return(1);
|
||||
}
|
||||
# parse the options
|
||||
Getopt::Long::Configure("posix_default");
|
||||
Getopt::Long::Configure("no_gnu_compat");
|
||||
|
Loading…
Reference in New Issue
Block a user