Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Commit

Permalink
fixed bug preventing the userdefaults recipe from working
Browse files Browse the repository at this point in the history
this bug seemed to pretty much break the recipe (chef would error with "cannot find resource named 'new' ...")
  • Loading branch information
joemiller committed Aug 10, 2012
1 parent 2099f3a commit 8f2e935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/userdefaults.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8f2e935

Please sign in to comment.