From 4c5be2b723930258328a9252845312a494305518 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 16 Apr 2010 10:44:43 +0000 Subject: [PATCH] defect 2988145: just display verbose info when -V specified git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index c43023231..5324791a6 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -741,7 +741,7 @@ sub updatenode # Sync files to the target nodes foreach my $synclist (keys %syncfile_node) { - if (defined($::VERBOSE)) + if ($::VERBOSE) { my $rsp = {}; $rsp->{data}->[0] = @@ -822,7 +822,7 @@ sub updatenode "XCATBYPASS=Y $::XCATROOT/bin/xdsh $nodestring -s -e $installdir/postscripts/xcatdsklspost 2 -m $snkey otherpkgs 2>&1"; } - if (defined($::VERBOSE)) + if ($::VERBOSE) { my $rsp = {}; $rsp->{data}->[0] = " $localhostname: Internal call command: $cmd"; @@ -898,7 +898,7 @@ $AIXnodes_nd, $subreq ) != 0 ) { arg => ['-r'], }, $subreq, 0, 1); - if (defined($::VERBOSE)) + if ($::VERBOSE) { my $rsp = {}; $rsp->{data}->[0] = @@ -915,7 +915,7 @@ $AIXnodes_nd, $subreq ) != 0 ) { env => \@envs, }, $subreq, 0, 1); - if (defined($::VERBOSE)) + if ($::VERBOSE) { my $rsp = {}; $rsp->{data}->[0] = @@ -997,7 +997,7 @@ $AIXnodes_nd, $subreq ) != 0 ) { } - if (defined($::VERBOSE)) + if ($::VERBOSE) { my $rsp = {}; $rsp->{data}->[0] = " $localhostname: Internal call command: $cmd"; @@ -1073,7 +1073,7 @@ $AIXnodes_nd, $subreq ) != 0 ) { $cmd = "XCATBYPASS=Y $::XCATROOT/bin/xdsh $nodestring -s -e $installdir/postscripts/xcataixpost -m $snkey -c $mode $postscripts 2>&1"; } - if (defined($::VERBOSE)) + if ($::VERBOSE) { my $rsp = {}; $rsp->{data}->[0] = " $localhostname: Internal call command: $cmd";