summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2012-11-15 14:06:07 -0800
committerdanielsdeleo <dan@opscode.com>2012-11-15 14:10:34 -0800
commit933cbb57c8bda3f1028c597247ec67cca64292c9 (patch)
treeb471ef43373a6ecae893cc0728a8e48f445c6191
parent1c5ffa6bc1a0eae130b5174a5d10c7e65667198f (diff)
downloadchef-933cbb57c8bda3f1028c597247ec67cca64292c9.tar.gz
[CHEF-3392] fix ruby 1.8 detection of version 1 format
-rw-r--r--chef/lib/chef/encrypted_data_bag_item.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/encrypted_data_bag_item.rb b/chef/lib/chef/encrypted_data_bag_item.rb
index c20d67c92d..b54a06d9b0 100644
--- a/chef/lib/chef/encrypted_data_bag_item.rb
+++ b/chef/lib/chef/encrypted_data_bag_item.rb
@@ -81,7 +81,7 @@ class Chef::EncryptedDataBagItem
end
def self.format_version_of(encrypted_value)
- if encrypted_value.respond_to?(:key)
+ if encrypted_value.respond_to?(:key?)
encrypted_value["version"]
else
0