Permalink
Browse files

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

  • Loading branch information...
1 parent fbabe4b commit ab62073ba038168d5725aedbff1a17c12c5c4b78 @bleything committed Dec 29, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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'

0 comments on commit ab62073

Please sign in to comment.