quixoten-puppetdb-terminus 2.3.5 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppet/indirector/catalog/puppetdb.rb +2 -2
- data/lib/puppetdb/terminus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aba823eea2b1575185872cd51bb6b4c27415cf38
|
4
|
+
data.tar.gz: 678a1a4614d837a723faf1b306d5b8e3c1d2bb80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c984094183728cb4c3982ddd9df0c2862964fb088e3f8b9f03fe82a3c30a881529187b286dac342d8aba69acf3d228c344ab7eb3925b0c0e682b4baec8172088
|
7
|
+
data.tar.gz: 547621f90c74f808e4f47388e46e443b03c0d610ebb87ece71af409a8dcca447af42a488d1163d8dbdb8f16ab6d7019cf0007dc461fc83c099323e914f126102
|
@@ -167,7 +167,7 @@ class Puppet::Resource::Catalog::Puppetdb < Puppet::Indirector::REST
|
|
167
167
|
end
|
168
168
|
end
|
169
169
|
|
170
|
-
resource['parameters'][
|
170
|
+
resource['parameters'][:alias] = aliases unless aliases.empty?
|
171
171
|
end
|
172
172
|
end
|
173
173
|
|
@@ -214,7 +214,7 @@ class Puppet::Resource::Catalog::Puppetdb < Puppet::Indirector::REST
|
|
214
214
|
profile("Map aliases to title (resource count: #{resources.count})",
|
215
215
|
[:puppetdb, :aliases, :map_to_title]) do
|
216
216
|
resources.each do |resource|
|
217
|
-
names = resource['parameters'][
|
217
|
+
names = Array(resource['parameters'][:alias]) || []
|
218
218
|
resource_hash = {'type' => resource['type'], 'title' => resource['title']}
|
219
219
|
names.each do |name|
|
220
220
|
alias_array = [resource['type'], name]
|