diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-05-01 10:15:17 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-05-01 10:15:17 -0700 |
commit | 8ca564d1f518bb57ceaf0c470c07de15e89fc78b (patch) | |
tree | 5faf6ec5ed461b713b28fcf526731da80f4b6eee | |
parent | 26a99926c3b9c3492226a64a5fefac0d2c2fbd65 (diff) | |
download | chef-8ca564d1f518bb57ceaf0c470c07de15e89fc78b.tar.gz |
Sort the equal_to values
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource_inspector.rb | 2 |
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 |