From 0c2a15250c9b12994df810be4fbf4283a0617d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20M=C3=BCller?= Date: Wed, 17 May 2017 09:31:29 +0200 Subject: [PATCH] Sort all array facts --- lib/facter/gluster.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/facter/gluster.rb b/lib/facter/gluster.rb index 73498ac1..20c7bcfa 100644 --- a/lib/facter/gluster.rb +++ b/lib/facter/gluster.rb @@ -61,20 +61,20 @@ if peer_count > 0 Facter.add(:gluster_peer_list) do setcode do - peer_list + peer_list.sort end end unless volume_bricks.empty? Facter.add(:gluster_volume_list) do setcode do - volume_bricks.keys + volume_bricks.keys.sort end end volume_bricks.each do |vol, bricks| Facter.add("gluster_volume_#{vol}_bricks".to_sym) do setcode do - bricks + bricks.sort end end end @@ -82,7 +82,7 @@ volume_options.each do |vol, opts| Facter.add("gluster_volume_#{vol}_options".to_sym) do setcode do - opts + opts.sort end end end @@ -91,7 +91,7 @@ volume_ports.each do |vol, ports| Facter.add("gluster_volume_#{vol}_ports".to_sym) do setcode do - ports + ports.sort end end end