Skip to content
Browse files

Do not sort arrays after building them as array data with complex

data in them like hashes will fail to sort and raise exceptions
  • Loading branch information...
1 parent 6a9fd62 commit 15fb3bd4aa7337b4948e3c313d4991205b27e099 @ripienaar committed Oct 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hiera/backend.rb
View
2 lib/hiera/backend.rb
@@ -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

0 comments on commit 15fb3bd

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