From fd942bcf5a171aed51f1db066b5b58f1c79b655c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 20 May 2013 17:59:46 +0000 Subject: [PATCH] Fix problem when request did not have adequate arg in dhcp.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16368 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 072814221..474305572 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -1533,7 +1533,7 @@ sub process_request } } - @ARGV = @{$req->{arg}}; + if ($req && $req->{arg}) { @ARGV = @{$req->{arg}}; } else { @ARGV=(); } $statements = ""; GetOptions('s|statements=s' => \$statements);