-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
This commit is contained in:
jbjohnso 2008-08-14 12:47:48 +00:00
parent 0d396a973d
commit 2f900ff875

View File

@ -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};