kitchen-salt 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Salt
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -189,7 +189,7 @@ module Kitchen
189
189
 
190
190
  # we get a hash with all the keys converted to symbols, salt doesn't like this
191
191
  # to convert all the keys back to strings again
192
- state_top_content = unsymbolize(config[:attributes][:state_top]).to_yaml
192
+ state_top_content = unsymbolize(config[:state_top]).to_yaml
193
193
  # .to_yaml will produce ! '*' for a key, Salt doesn't like this either
194
194
  state_top_content.gsub!(/(!\s'\*')/, "'*'")
195
195
  sandbox_state_top_path = File.join(sandbox_path, config[:salt_state_top])
@@ -203,13 +203,13 @@ module Kitchen
203
203
 
204
204
  def prepare_pillars
205
205
  info("Preparing pillars into #{config[:salt_pillar_root]}")
206
- debug("Pillars Hash: #{config[:attributes][:pillars]}")
206
+ debug("Pillars Hash: #{config[:pillars]}")
207
207
 
208
- return if config[:attributes][:pillars].nil?
208
+ return if config[:pillars].nil?
209
209
 
210
210
  # we get a hash with all the keys converted to symbols, salt doesn't like this
211
211
  # to convert all the keys back to strings again
212
- pillars = unsymbolize(config[:attributes][:pillars])
212
+ pillars = unsymbolize(config[:pillars])
213
213
  debug("unsymbolized pillars hash: #{pillars}")
214
214
 
215
215
  # write out each pillar (we get key/contents pairs)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-salt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-22 00:00:00.000000000 Z
12
+ date: 2014-01-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: salt provisioner for test-kitchen
15
15
  email: