secure_data_bag 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/secure_bag_base.rb +8 -2
- 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: 00dd6f53ed498ae42f0d7d0eed25523add5c24d8
|
4
|
+
data.tar.gz: 36c3fcb28c5d55245e2c7bbc41d8e473016d4caf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65c0efb5dae67a1dbe192e1794052bc0e2143ec275910791ea43b6445694b77282854f2f474b454b8071f54d6f403301741c45751a20b3e0e19320f1e67367c3
|
7
|
+
data.tar.gz: e46b32b2a0b08df9aa77bf8dda567c77c3aa17c10a2e39866b92a4597c66196e23f3b6ce402e68ae50fc3a3977017f2a7362270e901a2ce1f580a53e0e0f7de7
|
@@ -27,13 +27,19 @@ class Chef
|
|
27
27
|
default: Array.new
|
28
28
|
end
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
|
+
def encode_fields_to_array
|
32
|
+
unless config[:encode_fields].is_a?(Array)
|
33
|
+
config[:encode_fields] = config[:encode_fields].split(",")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
31
37
|
def use_encryption
|
32
38
|
if use_secure_databag then false
|
33
39
|
else
|
34
40
|
if @raw_data["encrypted_data"] or
|
35
41
|
@raw_data.reject { |k,v| k == "id" }.
|
36
|
-
all? { |k,v| v.key? "encrypted_data" }
|
42
|
+
all? { |k,v| v.is_a?(Hash) and v.key? "encrypted_data" }
|
37
43
|
then super
|
38
44
|
else false
|
39
45
|
end
|