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})) {