summaryrefslogtreecommitdiff
path: root/lib/chef/data_bag_item.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-12 13:38:34 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-12 13:38:34 -0800
commit30895241dfde87d74e3caaf649a118ea2aa304d1 (patch)
tree077958295f1b8c8ca5c7fea1f227204eedef7559 /lib/chef/data_bag_item.rb
parent812101f11a6c33e49f401ad72598ca6ffb38adc4 (diff)
downloadchef-30895241dfde87d74e3caaf649a118ea2aa304d1.tar.gz
more rubocop fixeslcg/more-rubocop-lint
fixes: Lint/UnreachableCode Lint/NonLocalExitFromIterator Lint/LiteralInCondition Lint/EmptyEnsure Lint/DefEndAlignment Lint/CircularArgumentReference
Diffstat (limited to 'lib/chef/data_bag_item.rb')
-rw-r--r--lib/chef/data_bag_item.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/data_bag_item.rb b/lib/chef/data_bag_item.rb
index 7ef9fffe07..b0713c298f 100644
--- a/lib/chef/data_bag_item.rb
+++ b/lib/chef/data_bag_item.rb
@@ -2,7 +2,7 @@
# Author:: Adam Jacob (<adam@opscode.com>)
# Author:: Nuo Yan (<nuo@opscode.com>)
# Author:: Christopher Brown (<cb@opscode.com>)
-# Copyright:: Copyright (c) 2009 Opscode, Inc.
+# Copyright:: Copyright (c) 2009-2016 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -163,7 +163,7 @@ class Chef
end
end
- def destroy(data_bag=data_bag(), databag_item=name)
+ def destroy(data_bag=self.data_bag(), databag_item=name)
chef_server_rest.delete("data/#{data_bag}/#{databag_item}")
end