-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
This commit is contained in:
jbjohnso 2009-03-28 07:03:25 +00:00
parent fdb4b70285
commit f295d30fa8

View File

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