From bd64e444c04fe556813bcd99c63cc6ef5602f306 Mon Sep 17 00:00:00 2001 From: duowang Date: Wed, 5 Jun 2013 10:37:10 +0000 Subject: [PATCH] modified method gen_new_hostinfo_string() in profilenodes.pm to sort the nodes' name git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8-pcm@16547 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index 14ab77c33..bc22d2858 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -1532,7 +1532,7 @@ sub gen_new_hostinfo_string{ # compose the stanza string for hostinfo file. my $hostsinfostr = ""; - foreach my $item (keys %hostinfo_dict){ + foreach my $item (sort(keys %hostinfo_dict)){ # Generate IPs for other interfaces defined in MAC file. my %ipshash; foreach (keys %netprofileattr){