minfra-cli 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/minfra/cli/version.rb +1 -1
- data/lib/minfra/cli.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e01ddd1aab00b59e77cca198cb41188270b77202f900afef2ea693029cc25bf
|
4
|
+
data.tar.gz: 44e3c6eb7d60db3a8cd3d55bb60793117bed96e0cc4b07c664275fc71bf38b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d76c1b520371c53b90988283a19979f773ad955520ba82a7500de27918f6b52744c091305422a66ea96a982dd21052738344b799b300604b04bd52b2302a5dd
|
7
|
+
data.tar.gz: 437a304792db570235878164058a6cd12433d75e644ddec7f058fe5154bf9b955bf9613113d354e21b445a1bc96966b547f58ca7556d6ee0ba19154893905730
|
data/CHANGELOG.md
CHANGED
data/lib/minfra/cli/version.rb
CHANGED
data/lib/minfra/cli.rb
CHANGED
@@ -90,15 +90,15 @@ module Minfra
|
|
90
90
|
return cache[value] if cache.has_key?(value)
|
91
91
|
|
92
92
|
values=value.split(".")
|
93
|
-
|
93
|
+
fst_value=values.shift
|
94
94
|
|
95
|
-
if special_lookups[
|
96
|
-
lookup_type={ merge_behavior: special_lookups[
|
95
|
+
if special_lookups[fst_value]
|
96
|
+
lookup_type={ merge_behavior: special_lookups[fst_value]["merge"].to_sym }
|
97
97
|
else
|
98
98
|
lookup_type=:deep
|
99
99
|
end
|
100
100
|
|
101
|
-
result=hiera.lookup(
|
101
|
+
result=hiera.lookup(fst_value, default, scope, nil, lookup_type)
|
102
102
|
if !values.empty? && result.kind_of?(Hash) # we return nil or the scalar value and only drill down on hashes
|
103
103
|
result=result.dig(*values)
|
104
104
|
end
|