Skip to content

Commit

Permalink
Do not sort arrays after building them as array data with complex
Browse files Browse the repository at this point in the history
data in them like hashes will fail to sort and raise exceptions
  • Loading branch information
ripienaar committed Oct 18, 2011
1 parent 6a9fd62 commit 15fb3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hiera/backend.rb
Expand Up @@ -129,7 +129,7 @@ def parse_answer(data, scope, extra_data={})
def resolve_answer(answer, resolution_type)
case resolution_type
when :array
[answer].flatten.uniq.compact.sort
[answer].flatten.uniq.compact
when :hash
answer # Hash structure should be preserved
else
Expand Down

0 comments on commit 15fb3bd

Please sign in to comment.