diff options
-rw-r--r-- | lib/chef/resource/macos_userdefaults.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb index 7cb9a8cbce..298f512dc7 100644 --- a/lib/chef/resource/macos_userdefaults.rb +++ b/lib/chef/resource/macos_userdefaults.rb @@ -193,9 +193,9 @@ class Chef type = new_resource.type || value_type(new_resource.value) # when dict this creates an array of values ["Key1", "Value1", "Key2", "Value2" ...] - cmd_vals = [ type == "dict" ? new_resource.value.flatten : new_resource.value ] - cmd_vals.prepend("-#{type}") if type - cmd_vals + cmd_values = [ type == "dict" ? new_resource.value.flatten : new_resource.value ] + cmd_values.prepend("-#{type}") if type + cmd_values end # |