diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index 5de4b1078..3d541de5a 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -840,10 +840,12 @@ sub process_request { my $command = $request->{command}->[0]; my $separator="XXXXXYYYYYZZZZZ"; my $usefping; - @ARGV=@{$request->{arg}}; - GetOptions( - 'f' => \$usefping - ); + if (ref $request->{arg}) { + @ARGV=@{$request->{arg}}; + GetOptions( + 'f' => \$usefping + ); + } if ($command eq "nodestat_internal") {