Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixed bug preventing the userdefaults recipe from working #12

Merged
merged 1 commit into from

2 participants

@joemiller

this bug seemed to pretty much break the recipe (chef would error with "cannot find resource named 'new' ...")

@joemiller joemiller 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' ...")
8f2e935
@jtimberman jtimberman merged commit c22f5fc into from
@jtimberman
Owner

I thought I fixed that. Or merged a pull request for it. Or something. Stupid code!

@jtimberman
Owner

Also, thank you :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 10, 2012
  1. @joemiller

    fixed bug preventing the userdefaults recipe from working

    joemiller authored
    this bug seemed to pretty much break the recipe (chef would error with "cannot find resource named 'new' ...")
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.