From 13010784e820c2400c44420e3d42a4777e096eb9 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 Jul 2008 23:56:19 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/iscsi.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/iscsi.pm b/xCAT-server/lib/xcat/plugins/iscsi.pm index 078089f80..27fe6feee 100644 --- a/xCAT-server/lib/xcat/plugins/iscsi.pm +++ b/xCAT-server/lib/xcat/plugins/iscsi.pm @@ -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');