diff --git a/xCAT-server-2.0/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server-2.0/lib/xcat/plugins/DBobjectdefs.pm index 4535e050a..de29fafda 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/DBobjectdefs.pm @@ -194,6 +194,10 @@ sub processArgs my $gotattrs = 0; @ARGV = @{$::args}; + + if (scalar(@ARGV) <= 0) { + return 2; + } # parse the options - include any option from all 4 cmds if (