secure_data_bag 2.0.9 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d705389148ab7e7a98ec870daf993d5dbb2b3620
4
- data.tar.gz: 6dbbcd5b000e47e9de86e1e8f54f1bad3981b758
3
+ metadata.gz: 2da6b7af2162746d0ce33058ca20ca79e3f144c6
4
+ data.tar.gz: 1c5edcb0b7190d48eff27cbf57c71490156b3dba
5
5
  SHA512:
6
- metadata.gz: e17d16bbb9180858c9a33326446b2c59b5a5682720069b6018e572efbfc6cff69453bd0cfff0f14a85ffbe189c79acbc706f4fc009f595fd3d8df23e38db7470
7
- data.tar.gz: 1076a6d9587b6b3063548ab2f5a334974674ec48bdf1c2390d9f847449d188fc633220a15becf949bdcb2dbe622a5ef12f447c5485018a4294f9e32be2e16cf4
6
+ metadata.gz: b50db275e770b0bf4677fc173601c64a4f6b0c7a0c41c299bfa221a8143a816666d2447215ed5291f6dd549797b82c1b645dd2ee51533af974df85706e19725d
7
+ data.tar.gz: f419a64f620860c6e6b3ef284de277ff17006ddf62ed9bae57d1ee072258b2f495cb702d37a356efe138d340e2960c194f04823bf04c6363cf0397e60e30018e
@@ -4,7 +4,8 @@ class Chef
4
4
  module DataQuery
5
5
  def secure_data_bag_item(bag, item, cache: false)
6
6
  data_bag_item = begin
7
- node.run_state[:secure_data_bag][bag] || {}
7
+ node.run_state[:secure_data_bag] ||= {}
8
+ node.run_state[:secure_data_bag][bag] ||= {}
8
9
  node.run_state[:secure_data_bag][bag][item]
9
10
  end if cache
10
11
 
@@ -1,5 +1,5 @@
1
1
 
2
2
  module SecureDataBag
3
- VERSION = "2.0.9"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secure_data_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Serafini