logstash-input-sensorpush 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/sensorpush.rb +7 -1
- data/logstash-input-sensorpush.gemspec +1 -1
- 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: 785bb4ed39375724a4e99b05a6761df5d9c58e5d762f147e8afe04d7f727ebd1
|
4
|
+
data.tar.gz: 1deb26ccf20f24dfd09a9d3e2ada4050085e2777fbd82286ea95ae29695b0813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5406541a85f399f6427be185fb3544ca68d6b3db90861e06e13a45d248c9aecb3ec3d6dda07c1feee9d2ad845c5950cad70f989f9036bacaecd0f6c2585c18ca
|
7
|
+
data.tar.gz: b259709aa64bdb3610feb242822c08652431c279ab6747c9c8ea0505ee35845d1e4689defe88e8302057bcefd5d9348bbdd728117276f6164534dd917ba0d0d9
|
@@ -105,7 +105,13 @@ class SensorPushApiConnection
|
|
105
105
|
req.body = JSON.generate(body)
|
106
106
|
resp = self.send_request(req)
|
107
107
|
|
108
|
-
|
108
|
+
sensors = resp["sensors"]
|
109
|
+
|
110
|
+
if sensors.nil?
|
111
|
+
return []
|
112
|
+
end
|
113
|
+
|
114
|
+
ret = sensors[sensor_id]
|
109
115
|
|
110
116
|
if ret.nil?
|
111
117
|
return []
|