summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-01 10:15:17 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-01 10:15:17 -0700
commit8ca564d1f518bb57ceaf0c470c07de15e89fc78b (patch)
tree5faf6ec5ed461b713b28fcf526731da80f4b6eee
parent26a99926c3b9c3492226a64a5fefac0d2c2fbd65 (diff)
downloadchef-8ca564d1f518bb57ceaf0c470c07de15e89fc78b.tar.gz
Sort the equal_to values
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource_inspector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource_inspector.rb b/lib/chef/resource_inspector.rb
index 3d2de15fb4..bc96ffd4a3 100644
--- a/lib/chef/resource_inspector.rb
+++ b/lib/chef/resource_inspector.rb
@@ -59,7 +59,7 @@ module ResourceInspector
required: opts[:required] || false,
default: opts[:default_description] || get_default(opts[:default]),
name_property: opts[:name_property] || false,
- equal_to: Array(opts[:equal_to]).map(&:inspect) }
+ equal_to: Array(opts[:equal_to]).sort.map(&:inspect) }
end
data
end