From b029723c23d77c9616d375bf28a49d51c5a746e3 Mon Sep 17 00:00:00 2001 From: sakolish Date: Mon, 28 Apr 2008 14:13:19 +0000 Subject: [PATCH] rscan usage error - Line #712 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1214 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/blade.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/blade.pm b/xCAT-server-2.0/lib/xcat/plugins/blade.pm index 7a3770e39..565a0ddb0 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/blade.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/blade.pm @@ -709,7 +709,7 @@ sub rscan { if ( !GetOptions(\%opt,qw(V|Verbose w x z))){ return(1,usage()); } - if (@ARGV) { + if ( defined(@ARGV[0]) ) { return(1,usage("Invalid argument: @ARGV\n")); } if (exists($opt{x}) and exists($opt{z})) {