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
This commit is contained in:
yinle 2011-07-15 15:19:39 +00:00
parent 2634ce8401
commit 888e85b597

View File

@ -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]);
}