Browse files

fixed bug preventing the userdefaults recipe from working

this bug seemed to pretty much break the recipe (chef would error with "cannot find resource named 'new' ...")
  • Loading branch information...
1 parent 2099f3a commit 8f2e935c62510ae46f41da44e6d4b7c9bc74c8aa @joemiller joemiller committed Aug 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 providers/userdefaults.rb
View
2 providers/userdefaults.rb
@@ -27,7 +27,7 @@ def load_current_resource
@userdefaults.domain(new_resource.domain)
Chef::Log.debug("Checking #{new_resource.domain} value")
truefalse = 1 if ['TRUE','1','true','YES','yes'].include?(new_resource.value)
- truefalse = 0 if ['FALSE','0','false','NO','no'].include?(new.resource.value)
+ truefalse = 0 if ['FALSE','0','false','NO','no'].include?(new_resource.value)
drcmd = "defaults read #{new_resource.domain} "
drcmd << "-g " if new_resource.global
drcmd << "#{new_resource.key} " if new_resource.key

0 comments on commit 8f2e935

Please sign in to comment.