diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index b6ac7350f..e3247a44b 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -1537,7 +1537,7 @@ sub process_request } } - @ARGV = @{$req->{arg}}; + if ($req && $req->{arg}) { @ARGV = @{$req->{arg}}; } else { @ARGV=(); } $statements = ""; GetOptions('s|statements=s' => \$statements);