knife-zero 1.8.4 → 1.8.5

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: 6ab2834fd2beeea31094b0febd081c29a15db310
4
- data.tar.gz: 189892d9e4dedadeaec7f94ca9f2e25e7aad4528
3
+ metadata.gz: 4b237a684fc97894a3527039f348625f4834dd4d
4
+ data.tar.gz: c125782b3e8a883d8792608bfaff70173bcd21ad
5
5
  SHA512:
6
- metadata.gz: 731464bccd0cbe722eac85f62191d0345ae86ad77fa4969a30f8ef055d741b3defb8d589db89091c379fd02990ec4afc0bf9c1798961172313a35b32fae60dfb
7
- data.tar.gz: 2fe821ece3692371730f722942d55d0c74f9f1faea4d4655d132be4257d6c142f7e65fa9a07fa8dd9109713e1e748c6f9f4f6fd6087afe1e1a12eb66bafb60c1
6
+ metadata.gz: 047c70e46a47bc6c57c814adcf82f597e72b28f3de214d41292d98ebdc7c59d3581c82b590b9f5e7f8473c94613a5186923e3c45b5d39ea011a479da594aeb6d
7
+ data.tar.gz: ef654a7a9a85090a64aae02096a9e35e59dfb18f78403d6f81c3396fba460368e7cf6c60519b119d9728b843c3e621e477063b149dbfcb478e608e4a98b7f84e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v1.8.5
6
+
7
+ - Bug: allow more than 2 white lists. HT: @kaznishi
8
+
5
9
  ## v1.8.4
6
10
 
7
11
  - Patched `net-ssh-multi`s from "1.1.0", "1.2.0" to "1.1.0", "1.2.0", "1.2.1"
@@ -18,15 +18,16 @@ class Chef
18
18
  alias :orig_config_content config_content
19
19
  def config_content
20
20
  client_rb = orig_config_content
21
+ white_lists = []
21
22
  %w{ automatic_attribute_whitelist default_attribute_whitelist normal_attribute_whitelist override_attribute_whitelist }.each do |white_list|
22
23
  if Chef::Config[:knife][white_list.to_sym] && Chef::Config[:knife][white_list.to_sym].is_a?(Array)
23
- client_rb << [
24
+ white_lists.push([
24
25
  white_list,
25
26
  Chef::Config[:knife][white_list.to_sym].to_s
26
- ].join(" ")
27
+ ].join(" "))
27
28
  end
28
29
  end
29
- client_rb
30
+ client_rb << white_lists.join("\n")
30
31
  end
31
32
 
32
33
  alias :orig_start_chef start_chef
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = "1.8.4"
3
+ VERSION = "1.8.5"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly