secure_data_bag 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/dsl/data_query.rb +3 -3
- data/lib/secure_data_bag/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3fa2bcb163807c1cd3ded495102d5711ec22383
|
4
|
+
data.tar.gz: acc0b6a7480657ff56fa24811f8f4d85c83e0907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0d7f6f356e4ad37ea91944e61cb92fe7c5a05d48f44f8cb13b01d25f45ba8366bba272b2f2929afdff13a05543fbd413163adbf68eab70d62cace0927a4757
|
7
|
+
data.tar.gz: 60385f682a64fec2e073309a6a1dcdda0db06ba5eefdd73a46e1be23f0d7a9a6fc6ce3fa43f5d5859bf66e0243c8bdaca18ad755e64290f28884a9a817211ea3
|
data/lib/chef/dsl/data_query.rb
CHANGED
@@ -11,8 +11,8 @@ class Chef
|
|
11
11
|
|
12
12
|
data_bag_item ||= begin
|
13
13
|
DataBag.validate_name!(bag.to_s)
|
14
|
-
SecureDataBag::Item.validate_id!(item)
|
15
|
-
SecureDataBag::Item.load(bag, item)
|
14
|
+
::SecureDataBag::Item.validate_id!(item)
|
15
|
+
::SecureDataBag::Item.load(bag, item)
|
16
16
|
rescue Exception
|
17
17
|
Log.error("Failed to load secure data bag item: #{bag.inspect} #{item.inspect}")
|
18
18
|
raise
|
@@ -20,7 +20,7 @@ class Chef
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def secure_data_bag_item!(item, fields=[])
|
23
|
-
secure = SecureDataBag::Item.from_item item
|
23
|
+
secure = ::SecureDataBag::Item.from_item item
|
24
24
|
secure.encoded_fields.concat(Array(fields))
|
25
25
|
secure
|
26
26
|
end
|