puppetdb_query 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/puppetdb_query/mongodb.rb +3 -3
- data/lib/puppetdb_query/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: 62d692be5b96ac8d1a62868392e9a887cee62ed0
|
|
4
|
+
data.tar.gz: 967326b89c665b33476a4026087da0bcbb70e531
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82df49994c7d600175f7a892cf862968918932e6c716758c841cdb3d56204dd8deb7e9b3c56b42d34f82d0fce2f1df637ca480c7d3d5af9672b3e488b1b57365
|
|
7
|
+
data.tar.gz: 100d49814440d549c324b5b53b3144f2a1174cb52dc7e0abecad690a0a9862ae573337bed3a62e6e01762c853b8ac9ea1833acdeaa44e61701321607c44510ee
|
|
@@ -75,10 +75,10 @@ module PuppetDBQuery
|
|
|
75
75
|
# @param query mongodb query
|
|
76
76
|
# @param facts [Array<String>] get these facts in the result, eg ['fqdn'], empty for all
|
|
77
77
|
def query_facts_exists(query, facts = [])
|
|
78
|
-
result = query_facts(query, facts
|
|
78
|
+
result = query_facts(query, facts)
|
|
79
79
|
unless fact_names.empty?
|
|
80
|
-
result.keep_if do |
|
|
81
|
-
fact_names.any? {|f| !v[f].nil? }
|
|
80
|
+
result.keep_if do |_k, v|
|
|
81
|
+
fact_names.any? { |f| !v[f].nil? }
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
result
|