puppetdb_query 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppetdb_query/to_mongo.rb +2 -2
- 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: 27f07ecc3d21e288773f4dbd073a01916b217c76
|
4
|
+
data.tar.gz: c4f1af6f52903ccfa03531ae03d29365a33b1504
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7314f72c14245d7cb0e16251daf5f3af13713c8c12154279fddb19455fb12a7ee80e634fe76a3bd2518dcc030d0915a1e62f88938d94485c0b9cd51430ed3a62
|
7
|
+
data.tar.gz: 70c7c3d25a471f70ae936bf84b19bc598aa5defc7bd987cc57eda5d0b3cde9d3a9db11a77755fc90d6d507d29611a068119b523b81a9b6836299bf31a909f20e
|
@@ -44,9 +44,9 @@ module PuppetDBQuery
|
|
44
44
|
# see https://jira.mongodb.org/browse/SERVER-10708
|
45
45
|
{ :$nor => terms }
|
46
46
|
when :_equal
|
47
|
-
{ term.args[0] => term.args[1].to_s }
|
47
|
+
{ term.args[0] => (term.args[1] != :null ? term.args[1].to_s : :null) }
|
48
48
|
when :_not_equal
|
49
|
-
{ term.args[0] => { :$ne => term.args[1].to_s } }
|
49
|
+
{ term.args[0] => { :$ne => (term.args[1] != :null ? term.args[1].to_s : :null) } }
|
50
50
|
when :_match
|
51
51
|
{ term.args[0] => { :$regex => term.args[1].to_s } }
|
52
52
|
when :_in
|