From 3d93b9ba937f13b972461b3b8661488c47f5de0f Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 7 Apr 2014 10:36:18 -0400 Subject: [PATCH] defect 4047 perl warnings --- perl-xCAT/xCAT/InstUtils.pm | 2 +- perl-xCAT/xCAT/TableUtils.pm | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/InstUtils.pm b/perl-xCAT/xCAT/InstUtils.pm index a795359a9..71c4a1785 100644 --- a/perl-xCAT/xCAT/InstUtils.pm +++ b/perl-xCAT/xCAT/InstUtils.pm @@ -1023,7 +1023,7 @@ sub dolitesetup $nrange = join(',',@nodel); } - my @flist = xCAT::Utils->runcmd("/opt/xcat/bin/litefile $nrange", -1); + @flist = xCAT::Utils->runcmd("/opt/xcat/bin/litefile $nrange", -1); if (scalar(@flist) > 0) { foreach my $l (@flist) { my ($j1, $j2, $file) = split /\s+/, $l; diff --git a/perl-xCAT/xCAT/TableUtils.pm b/perl-xCAT/xCAT/TableUtils.pm index daacc6e28..bf3adfef3 100644 --- a/perl-xCAT/xCAT/TableUtils.pm +++ b/perl-xCAT/xCAT/TableUtils.pm @@ -429,7 +429,6 @@ rmdir \"/tmp/$to_userid\" \n"; # Need to check if nodes are in a zone. my @zones; my $tab = xCAT::Table->new("zone"); - my @zones; if ($tab) { # if we have zones, need to send the zone keys to each node in the zone @@ -623,7 +622,7 @@ sub sendkeysTOzones my ($class, $ref_nodes,$expecttimeout) = @_; my @nodes=$ref_nodes; my $n_str = $nodes[0]; - my @nodes= split(",", $n_str); + @nodes= split(",", $n_str); my $rsp = (); my $cmd; my $roothome = xCAT::Utils->getHomeDir("root");