-Fix iscsi plugin default processing to not fail under 'strict'

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1945 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-07-23 23:56:19 +00:00
parent f1da168cb7
commit 13010784e8

View File

@ -54,11 +54,13 @@ sub process_request {
$callback->({error=>"/usr/sbin/tgtadm does not exist, iSCSI plugin currently requires it, please install scsi-target-utils package under CentOS, RHEL, or Fedora. SLES support is not yet implemented",errorcode=>[1]});
return;
}
@ARGV=@{$request->{arg}};
my $lunsize = 4096;
GetOptions(
"size|s=i" => \$lunsize,
);
if ($request->{arg)) {
@ARGV=@{$request->{arg}};
GetOptions(
"size|s=i" => \$lunsize,
);
}
my $iscsitab = xCAT::Table->new('iscsi');
my @nodes = @{$request->{node}};
my $sitetab = xCAT::Table->new('site');