kafo 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kafo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1aba96236792eab1ec4fdf251ed8ffa9b2eb97b5
4
- data.tar.gz: 985d1ca234e1b51e5004b7738c35673ecabed643
3
+ metadata.gz: a64613da7237f085eda0a644e760cc3142b9d36a
4
+ data.tar.gz: 7d2c756d8f03292efd9a7cfccbc3a1f80a89739a
5
5
  SHA512:
6
- metadata.gz: 90264b64775acb7b4c08ad04b936fddf3e4650eab45fe9aa41013cff0db599373c48061a272a7d3ecd27afde0b6e773e94722327cb93b8192bda5319b11354d9
7
- data.tar.gz: 6bde752677b5921c939fe56f1e6b045e0f7edd7f4b39b934318b85655d25805ac4e73ff618a7c34410f98cfbf6425766a55764c46af8671d9a67c23359213e94
6
+ metadata.gz: b6481ea79612e53eb2a11ff48389d5277d001756424bb84eb42799900250d12e47dddd25c1ab9fb419251be5477294e50e5e2e31c004d0839d0829042a46194c
7
+ data.tar.gz: 8bf3c9827d8d93a06f112fa638f579c210602bf0be3ceb53a1dcc7a4aa65dbada9bb961c32378aa63b12ea996570590832d37d1c1da815eaa1cbb5a35b4fa371
data/lib/kafo/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
- VERSION = "0.3.9"
3
+ VERSION = "0.3.10"
4
4
  end
@@ -4,7 +4,11 @@ module Puppet::Parser::Functions
4
4
  newfunction(:dump_values) do |args|
5
5
  options = []
6
6
  options<< false if Puppet::PUPPETVERSION.start_with?('2.6')
7
- data = Hash[args.map { |arg| [arg, lookupvar(arg, *options) || arg] }]
7
+ data = args.map do |arg|
8
+ found_value = lookupvar(arg, *options)
9
+ [arg, found_value.nil? ? arg : found_value]
10
+ end
11
+ data = Hash[data]
8
12
  dump_dir = YAML.load_file(lookupvar('kafo_config_file'))[:default_values_dir]
9
13
  File.open("#{dump_dir}/default_values.yaml", 'w') { |file| file.write(YAML.dump(data)) }
10
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Hulan