X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/8fe918b2f21cce5df41b31dc8f58b34aad65dd57..62e4ecb57749d4c45eeed2fc5e8bba1fac2f92bc:/cookbooks/apt/resources/source.rb diff --git a/cookbooks/apt/resources/source.rb b/cookbooks/apt/resources/source.rb index 2839b29b6..83fc3577f 100644 --- a/cookbooks/apt/resources/source.rb +++ b/cookbooks/apt/resources/source.rb @@ -24,6 +24,7 @@ attribute :name, :kind_of => String, :name_attribute => true attribute :template, :kind_of => String, :default => "default.list.erb" attribute :url, :kind_of => String, :required => true attribute :key, :kind_of => String +attribute :key_url, :kind_of => String def initialize(name, run_context = nil) super(name, run_context) @@ -32,5 +33,5 @@ def initialize(name, run_context = nil) end def after_created - notifies :run, "execute[apt-update]", :immediately + notifies :run, "execute[apt-update]", :immediately if @action == :create end