From 888e85b5978da12a695eee0344198dc131c2c82d Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 15 Jul 2011 15:19:39 +0000 Subject: [PATCH] fix bug 3368028: mkhwconn cec -s sets the hcp and mgt attr to hmc git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCconn.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/PPCconn.pm b/perl-xCAT/xCAT/PPCconn.pm index d2caee21f..c4826aa30 100644 --- a/perl-xCAT/xCAT/PPCconn.pm +++ b/perl-xCAT/xCAT/PPCconn.pm @@ -509,7 +509,7 @@ sub mkhwconn my $res = xCAT::PPCcli::mksysconn( $exp, $node_ip, $type, $passwd); $Rc = shift @$res; push @value, [$node_name, @$res[0], $Rc]; - if ( !$Rc and !$opt->{s}) + if ( !$Rc and !(exists $opt->{s})) { sethmcmgt( $node_name, $exp->[3]); }