Skip to content

Instantly share code, notes, and snippets.

@gondoi
Created August 4, 2011 17:21
Show Gist options
  • Save gondoi/1125679 to your computer and use it in GitHub Desktop.
Save gondoi/1125679 to your computer and use it in GitHub Desktop.
nil or not to nil
default[:username][:password] = nil
{ "username" :
{ "password" : "hash" }}
user "username" do
password node[:username][:password]
not_if do node[:username][:password].nil? end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment