From 6f81d9b68a7d43f6346a1ae0e1dd786ad439329e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 12 Jul 2011 12:57:32 +0000 Subject: [PATCH] Fix nodestat without arguments git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodestat.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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") {