puppetdb_query 0.0.29 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c17f1346a250a7f798aa88ffbc93cf2ed626c296
4
- data.tar.gz: e799b103ed12d2363f938367dd85ea00acab014f
3
+ metadata.gz: 715d21df0652dcdd47430189f529c6ec7c0ff886
4
+ data.tar.gz: 84531dbf0adb86fa2fdef743a07ad952c9daf77d
5
5
  SHA512:
6
- metadata.gz: b24a43b8951434a2bf1709b5644f944e5f0fa18a0a5a8a16db3674741e4d5ca375eab42768973cf055e28d00c5cce570b155f80ff7a8296f62bc25e1cbc9504d
7
- data.tar.gz: 496d62b09df8af2d8b61dba0ed55693a84928b0accca0e812ebb0af2cd6c47ccdd202384f5adceac1f47ed6738271ed6723bf0d57d578f56f8f64936aaa97a52
6
+ metadata.gz: cdd587790d7590dd20b45de072777bb7b6934f9fb297be5003b0ed828e2d602a4c32c54abb33041867b50c359d6be9da1a90c4ac998fd95f47bab6ac82db0c7a
7
+ data.tar.gz: 2c5afe94f4a2daf0be743ab8400831f68d4a5b6cf37d47dfa6a39283306512388d100567b78d2bd5d544405116faea156e5101e8f598b3144ee409f7d3996917
@@ -76,9 +76,9 @@ module PuppetDBQuery
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
78
  result = query_facts(query, facts)
79
- unless fact_names.empty?
79
+ unless facts.empty?
80
80
  result.keep_if do |_k, v|
81
- fact_names.any? { |f| !v[f].nil? }
81
+ facts.any? { |f| !v[f].nil? }
82
82
  end
83
83
  end
84
84
  result
@@ -1,3 +1,3 @@
1
1
  module PuppetDBQuery
2
- VERSION = "0.0.29".freeze
2
+ VERSION = "0.0.30".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetdb_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Meyling