perus 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perus/pinger/pinger.rb +13 -1
- data/lib/perus/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: 91f98973d5bdd83cafeb1ef537fbf51f549224ef
|
4
|
+
data.tar.gz: a9cd139a54b24b664c974bd5132e52783df9ebb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8b764cab1b3a391826a86e471a635c084377b9e90f0c28f86c0d1d7a59d8e815881923c6901d18e3700cbe8462f2cdf65d17abaf2d69e88226be01afcfeb6fe
|
7
|
+
data.tar.gz: 7d554286284a864ddf7bde51774b81c920e55aa6f77a11200b2f81e784d2e90cbfdd39769056f00fc2cf0821060213d86bd607ec10f9f3d48aa1255b6f803d74
|
data/lib/perus/pinger/pinger.rb
CHANGED
@@ -103,7 +103,19 @@ module Perus::Pinger
|
|
103
103
|
config_url = (@server_uri + config_path).to_s
|
104
104
|
|
105
105
|
# load the system config by requesting it from the perus server
|
106
|
-
|
106
|
+
tries = 0
|
107
|
+
json = begin
|
108
|
+
JSON.parse(RestClient.get(config_url))
|
109
|
+
rescue => e
|
110
|
+
if tries < 5
|
111
|
+
tries += 1
|
112
|
+
sleep 2
|
113
|
+
retry
|
114
|
+
else
|
115
|
+
raise e
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
107
119
|
json['metrics'] ||= []
|
108
120
|
json['actions'] ||= []
|
109
121
|
@system_id = json['id']
|
data/lib/perus/version.rb
CHANGED