From 358ea0584ff46ba4d4c51e8eff5f494d39552720 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 24 Oct 2017 16:19:26 -0400 Subject: [PATCH] Sort nodels attribute names The ordering of attribute names out of nodels is inconsistent. Use sort to provide consistent output --- xCAT-server/lib/xcat/plugins/tabutils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 0515eae93..2606d11c5 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -2066,7 +2066,7 @@ sub nodels my %satisfiedreqs = (); foreach my $rec (@$recs) { - foreach (keys %$rec) + foreach (sort keys %$rec) { if ($_ eq '!!xcatgroupattribution!!') { next; } if ($_ eq $nodekey and $removenodecol) { next; }