From 93b9be9b49baf435904268ad01dd0b46576f4c94 Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 18 Oct 2011 03:27:24 +0000 Subject: [PATCH] fixed the uninitialized error in get_ServiceNode() git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@10814 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 078f7b565..56e7dcb8a 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -3635,7 +3635,11 @@ sub get_ServiceNode if ($request eq "MN") { - if( $onlymaster == 1) { + #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";