summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-03-21 12:23:30 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-03-21 13:53:29 -0700
commit9b0669f3327789cf768be1ef879867cca90111b8 (patch)
tree1ab3dd2fcca27cba09851eab0825b61c29e5958e
parentd7cb6fc66b7563d79d25b952ea1e7220dc273dfa (diff)
downloadchef-9b0669f3327789cf768be1ef879867cca90111b8.tar.gz
remove caller[0]
appears to not be necessary...
-rw-r--r--lib/chef/provider/apt_update.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/apt_update.rb b/lib/chef/provider/apt_update.rb
index d13e5d5c72..d2dd5cfb14 100644
--- a/lib/chef/provider/apt_update.rb
+++ b/lib/chef/provider/apt_update.rb
@@ -62,17 +62,17 @@ class Chef
def do_update
[STAMP_DIR, APT_CONF_DIR].each do |d|
- declare_resource(:directory, d, caller[0]) do
+ declare_resource(:directory, d) do
recursive true
end
end
- declare_resource(:file, "#{APT_CONF_DIR}/15update-stamp", caller[0]) do
+ declare_resource(:file, "#{APT_CONF_DIR}/15update-stamp") do
content "APT::Update::Post-Invoke-Success {\"touch #{STAMP_DIR}/update-success-stamp 2>/dev/null || true\";};"
action :create_if_missing
end
- declare_resource(:execute, "apt-get -q update", caller[0])
+ declare_resource(:execute, "apt-get -q update")
end
end