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

Commit

Permalink
Merge pull request #12 from joemiller/patch-1
Browse files Browse the repository at this point in the history
fixed bug preventing the userdefaults recipe from working
  • Loading branch information
Joshua Timberman committed Aug 11, 2012
2 parents 2099f3a + 8f2e935 commit c22f5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/userdefaults.rb
Original file line number Diff line number Diff line change
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 c22f5fc

Please sign in to comment.