diff options
author | Jan <jan@habermann24.com> | 2014-12-28 20:43:31 +0100 |
---|---|---|
committer | Jan <jan@habermann24.com> | 2014-12-28 20:43:31 +0100 |
commit | 8722bfdd82a5fac1c51628b317ef9f4cff425d23 (patch) | |
tree | b7473daeb1690c9f5708a1a3e91e2fbd27befa31 /lib/chef/data_bag_item.rb | |
parent | 151e18fc0ebf1597498a65008f02a760b1737ef0 (diff) | |
download | chef-8722bfdd82a5fac1c51628b317ef9f4cff425d23.tar.gz |
Ruby 2.2 Issue:: data_bag_item.rb:161: warning: circular argument reference - data_bag
This fixes a warning in Ruby 2.2 about circular argument references in data_bag_item.rb
See this ruby issue for more details: https://bugs.ruby-lang.org/issues/10314
Diffstat (limited to 'lib/chef/data_bag_item.rb')
-rw-r--r-- | lib/chef/data_bag_item.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/data_bag_item.rb b/lib/chef/data_bag_item.rb index 6f0ae65478..fc0ee74c0c 100644 --- a/lib/chef/data_bag_item.rb +++ b/lib/chef/data_bag_item.rb @@ -158,7 +158,7 @@ class Chef end end - def destroy(data_bag=data_bag, databag_item=name) + def destroy(data_bag=data_bag(), databag_item=name) chef_server_rest.delete_rest("data/#{data_bag}/#{databag_item}") end |