From 2f900ff8759ab833b9f44564c2a4a1aa4e23c8e6 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 14 Aug 2008 12:47:48 +0000 Subject: [PATCH] -Fix problem where makedns would fail without arguments git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/bind.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/bind.pm b/xCAT-server/lib/xcat/plugins/bind.pm index 8701428b3..95e04d0b2 100755 --- a/xCAT-server/lib/xcat/plugins/bind.pm +++ b/xCAT-server/lib/xcat/plugins/bind.pm @@ -113,7 +113,10 @@ sub process_request { $callback->({error=>["No site table found"],errorcode=>[1]}); return; } - my @args = @{$request->{arg}}; + my @args=(); + if ($request->{$arg}) { + @args = @{$request->{arg}}; + } (my $fent) = $sitetab->getAttribs({key=>'forwarders'},'value'); if ($fent and defined $fent->{value}) { @forwarders = split /[,:;]/,$fent->{value};