ring-sqa 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ring/sqa/alarm.rb +2 -1
- data/lib/ring/sqa/nodes.rb +1 -0
- data/ring-sqa.gemspec +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: 5a9e53e58f2786d8d813c824630b6c3885a92d89
|
4
|
+
data.tar.gz: 795d8eec0b54a1c9cb634adf99006931bcf0173c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0850b9387086975c40633444e0de890b1899fe25a9af70766f0d78f2e33c6694c3e08ab26aeb835629b1bdcf3400742f3cb34ecdc9272653596454a584e67f3
|
7
|
+
data.tar.gz: b77f8540839d0af92ed47b923f299d240ad194f344815541e0f384b737bbe921a456f14ea812b44c1bf54a44be6e3108c15166f47ef1af8eb709c6112512ac4a
|
data/lib/ring/sqa/alarm.rb
CHANGED
@@ -45,9 +45,10 @@ class SQA
|
|
45
45
|
msg = {short: "#{@hostname}: raising #{@afi} alarm - #{exceeding_nodes.size} new nodes down"}
|
46
46
|
exceeding_nodes = exceeding_nodes.map { |node| @nodes.get node }
|
47
47
|
|
48
|
+
addr_len = @afi == 'ipv6' ? 40 : 15
|
48
49
|
nodes_list = ''
|
49
50
|
exceeding_nodes.sort_by{ |node| node[:cc] }.each do |node|
|
50
|
-
nodes_list << "- %-35s
|
51
|
+
nodes_list << "- %-35s %#{addr_len}s AS%-6s %2s\n" % [node[:name], node[:ip], node[:as], node[:cc]]
|
51
52
|
end
|
52
53
|
|
53
54
|
mtr_list = ''
|
data/lib/ring/sqa/nodes.rb
CHANGED
data/ring-sqa.gemspec
CHANGED