fixed the uninitialized error in get_ServiceNode()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10813 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
7b9080b5f5
commit
7121c53aa7
@ -3623,7 +3623,15 @@ sub get_ServiceNode
|
||||
|
||||
if ($request eq "MN")
|
||||
{
|
||||
$snattribute = "servicenode";
|
||||
# When run mkhwconn/lshwconn/rmhwconn with -T fnm for CNM, it will send the
|
||||
# command from the MN to CEC/Frame direclty, not through the service node if specified.
|
||||
# The $onlymaster is set in preprocess_request() in PPC.pm
|
||||
# It will not affect the others
|
||||
if( defined($onlymaster) && $onlymaster == 1) {
|
||||
$snattribute = "xcatmaster";
|
||||
} else {
|
||||
$snattribute = "servicenode";
|
||||
}
|
||||
|
||||
}
|
||||
else # Node
|
||||
|
Loading…
Reference in New Issue
Block a user