diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index d466dcad0..4d5467320 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -299,8 +299,10 @@ sub preprocess_request my $req = shift; $callback = shift; my $localonly; - @ARGV = @{$req->{arg}}; - GetOptions('l' => \$localonly); + if (ref $req->{arg}) { + @ARGV = @{$req->{arg}}; + GetOptions('l' => \$localonly); + } if ($req->{_xcatdest}) { return [$req];