consul-templaterb 1.31.0 → 1.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/consul/async/version.rb +1 -1
- data/samples/consul-ui/js/timeline.js +1 -1
- data/samples/consul-ui/timeline.json.erb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5d188151cdf2f004d4993cc5620ad86ce8632e2de820ca6498d37ce8acbd4c9
|
|
4
|
+
data.tar.gz: 6469c2b6d1a9032bb16fdfbe53b062a2271e3a787dcc0f52bb0e749c081081e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 498a5282930d98afe30840f8f167559783aafa7d17b9a902ff8950dac5727d8496c666d0dea01d10ac59cfe4e845ca5664ded482b16641d4723f3edd5fa9053a
|
|
7
|
+
data.tar.gz: a2526b83b9083275b6d1057948d80457f8ea4aede46201b15408fe331a329430d6785f8372339b8c2e139da2f1fe96c13a699d4b6c936f98d411c26b797413c2
|
data/CHANGELOG.md
CHANGED
data/lib/consul/async/version.rb
CHANGED
|
@@ -434,7 +434,7 @@ class ServiceTimeline {
|
|
|
434
434
|
}
|
|
435
435
|
var text = e.instance;
|
|
436
436
|
if (e.instance_info && e.instance_info.node) {
|
|
437
|
-
text = e.instance_info.
|
|
437
|
+
text = e.instance_info.fqdn;
|
|
438
438
|
if (e.instance_info.port > 0) {
|
|
439
439
|
text += ":" + e.instance_info.port
|
|
440
440
|
}
|
|
@@ -41,10 +41,12 @@ cur_state = services.map do |service_name, _tags|
|
|
|
41
41
|
mindex = chk['ModifyIndex'] || 0
|
|
42
42
|
mod_index = mindex if mod_index < mindex
|
|
43
43
|
end
|
|
44
|
-
|
|
44
|
+
node_name = instance['Node']['Node']
|
|
45
|
+
["#{node_name}:#{instance['Service']['ID']}",
|
|
45
46
|
{
|
|
46
47
|
'address' => instance.service_address,
|
|
47
|
-
'node' =>
|
|
48
|
+
'node' => node_name,
|
|
49
|
+
'fqdn' => instance.node_meta['fqdn'] || node_name,
|
|
48
50
|
'port' => instance['Service']['Port'],
|
|
49
51
|
'idx' => mod_index || cur_index,
|
|
50
52
|
'status' => instance.status,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: consul-templaterb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.31.
|
|
4
|
+
version: 1.31.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SRE Core Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: em-http-request
|