minor bug fix

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2947 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-03-19 19:26:21 +00:00
parent 8e867c23dd
commit e5c38a40c1

View File

@ -1325,6 +1325,11 @@ sub getNodeConfData {
my %ret=();
#get monitoring server
my $pHash=xCAT_monitoring::monitorctrl->getNodeMonServerPair([$node], 0);
if (ref($pHash) eq 'ARRAY') {
xCAT::MsgUtils->message('S', "[mon]: getPostScripts: " . $pHash->[1]);
return %ret;
}
my @pair_array=split(':', $pHash->{$node});
my $monserver=$pair_array[0];
if ($monserver eq 'noservicenode') { $monserver=hostname(); }