Skip to content
Browse files

ensure a permanent order in servers_with_facts.

  • Loading branch information...
1 parent 01baece commit 78be0f8af1632200939be84541c57954507a37a7 @specialunderwear committed Dec 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/puppet/parser/functions/servers_with_facts.rb
View
2 lib/puppet/parser/functions/servers_with_facts.rb
@@ -26,7 +26,7 @@ module Puppet::Parser::Functions
log "found server #{result[:body][:data][:facts]['fqdn']}"
end
- return results
+ return results.sort {|first, second| first['fqdn'] <=> second['fqdn']}
rescue Exception => e
log "an error occurred while querying for nodes #{e.message}"
[]

0 comments on commit 78be0f8

Please sign in to comment.
Something went wrong with that request. Please try again.