consul-templaterb 1.31.0 → 1.31.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0929b48d32c3a556bff69053efcb0f239ee7cc18b39907c71ae1309bebeabbb
4
- data.tar.gz: f6a8130e754621e9603a11cbbbc0963c67ef043b5578c35944ed6a26f9e59d3e
3
+ metadata.gz: f5d188151cdf2f004d4993cc5620ad86ce8632e2de820ca6498d37ce8acbd4c9
4
+ data.tar.gz: 6469c2b6d1a9032bb16fdfbe53b062a2271e3a787dcc0f52bb0e749c081081e4
5
5
  SHA512:
6
- metadata.gz: 643d665507cd9a633dffdc741f4d643a55a0c4acaefc7feb08396f95383f491dd8d1917f3264b49a04cc67d258efa8dee58a7bc50d7fe74b440fbad74877c36b
7
- data.tar.gz: dfe3a05334f0d65216b5973ea9f5716c983ce6d428751243991d8708781d9b95ff19404fba886f83df711563b2c46a3850a06f391b7a26c2ec82a7987df046fa
6
+ metadata.gz: 498a5282930d98afe30840f8f167559783aafa7d17b9a902ff8950dac5727d8496c666d0dea01d10ac59cfe4e845ca5664ded482b16641d4723f3edd5fa9053a
7
+ data.tar.gz: a2526b83b9083275b6d1057948d80457f8ea4aede46201b15408fe331a329430d6785f8372339b8c2e139da2f1fe96c13a699d4b6c936f98d411c26b797413c2
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.31.1 (Jan 25, 2021)
4
+
5
+ IMPROVEMENTS:
6
+
7
+ * Use Node.Meta.fqdn to display node names in timeline if set
8
+
3
9
  ## 1.31.0 (Jan 18, 2021)
4
10
 
5
11
  IMPROVEMENTS:
@@ -1,5 +1,5 @@
1
1
  module Consul
2
2
  module Async
3
- VERSION = '1.31.0'.freeze
3
+ VERSION = '1.31.1'.freeze
4
4
  end
5
5
  end
@@ -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.node;
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
- ["#{instance['Node']['Node']}:#{instance['Service']['ID']}",
44
+ node_name = instance['Node']['Node']
45
+ ["#{node_name}:#{instance['Service']['ID']}",
45
46
  {
46
47
  'address' => instance.service_address,
47
- 'node' => instance['Node']['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.0
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-18 00:00:00.000000000 Z
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