Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

defaults requires values with spaces to be double and then single quoted

  • Loading branch information...
commit ab62073ba038168d5725aedbff1a17c12c5c4b78 1 parent fbabe4b
@bleything authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  vendored_cookbooks/mac_os_x/providers/userdefaults.rb
View
2  vendored_cookbooks/mac_os_x/providers/userdefaults.rb
@@ -50,6 +50,8 @@ def load_current_resource
type = new_resource.type
value = "'#{new_resource.value}'"
+ value = "\"#{value}\"" if value.include? ' '
+
case new_resource.value
when TrueClass, FalseClass
type ||= 'bool'
Please sign in to comment.
Something went wrong with that request. Please try again.