From 83da9f758497bf8fc0eea62a99409d8c62a23d07 Mon Sep 17 00:00:00 2001 From: zhanx Date: Tue, 14 Oct 2008 11:19:57 +0000 Subject: [PATCH] fix makeconservercf bug:makeconservercf cannot work for a noderange git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2343 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/conserver.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/conserver.pm b/xCAT-server/lib/xcat/plugins/conserver.pm index 0031f06ea..3fbbd9147 100644 --- a/xCAT-server/lib/xcat/plugins/conserver.pm +++ b/xCAT-server/lib/xcat/plugins/conserver.pm @@ -230,6 +230,17 @@ sub makeconservercf { my @cfgents1;# = $hmtab->getAllNodeAttribs(['cons','serialport','mgt','conserver','termserver','termport']); if (($nodes and @$nodes > 0) or $req->{noderange}->[0]) { @cfgents1 = $hmtab->getNodesAttribs($nodes,['cons','serialport','mgt','conserver','termserver','termport']); +#to make the result consistent to getAllNodeAttribs + my @tmpcfgents1; + foreach my $ent (@cfgents1) + { + foreach my $nodeent ( keys %$ent) + { + push @tmpcfgents1, $ent->{$nodeent}->[0] ; + } + } + @cfgents1 = @tmpcfgents1 + } else { @cfgents1 = $hmtab->getAllNodeAttribs(['cons','serialport','mgt','conserver','termserver','termport']); }