From: Tom Hughes Date: Sat, 23 Nov 2013 17:00:11 +0000 (+0000) Subject: Don't use ||= in attributes files as it doesn't work X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/20a1e1fb660f7a1e2dc04920afed483a7af7fbc1?ds=sidebyside Don't use ||= in attributes files as it doesn't work --- diff --git a/cookbooks/apt/attributes/default.rb b/cookbooks/apt/attributes/default.rb index 2ecdb2042..f15361411 100644 --- a/cookbooks/apt/attributes/default.rb +++ b/cookbooks/apt/attributes/default.rb @@ -1 +1 @@ -default[:apt][:sources] ||= [] +default_unless[:apt][:sources] = []