From f295d30fa8060bfacedc40478743694023a885d7 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 28 Mar 2009 07:03:25 +0000 Subject: [PATCH] -Fix makedhcp without extra arguments git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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];