From 0d6b9af866785804ef61c3d7be3da8c42cc8c084 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 20 May 2013 17:59:40 +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/trunk@16367 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 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);