Browse files

[COOK-922] - account for "allow" being nil so existing use does not r…

…equire updating data bags
  • Loading branch information...
1 parent 8c9678a commit 161f2e5ae166d4a245878c98438aced199ca3be9 @jtimberman jtimberman committed Jan 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 reprepro/recipes/default.rb
View
4 reprepro/recipes/default.rb
@@ -28,6 +28,8 @@
node.set_unless.reprepro.pgp_email = apt_repo['pgp']['email']
node.set_unless.reprepro.pgp_fingerprint = apt_repo['pgp']['fingerprint']
+apt_repo_allow = apt_repo["allow"] || []
+
ruby_block "save node data" do
block do
node.save
@@ -62,7 +64,7 @@
owner "nobody"
group "nogroup"
variables(
- :allow => apt_repo["allow"],
+ :allow => apt_repo_allow,
:codenames => apt_repo["codenames"],
:architectures => apt_repo["architectures"],
:incoming => apt_repo["incoming"],

0 comments on commit 161f2e5

Please sign in to comment.