Merge pull request #4410 from hashicorp/bugfix/gh-4175-service-ip

UI - Bugfix: Show Service IP not the Node IP
This commit is contained in:
John Cowen 2018-07-18 18:39:39 +01:00 committed by GitHub
commit a1a0c1db0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -37,7 +37,7 @@
href=(href-to 'dc.nodes.show' item.Node.Node)
name=item.Node.Node
service=item.Service.ID
address=(concat item.Node.Address ':' item.Service.Port)
address=(concat item.Service.Address ':' item.Service.Port)
checks=item.Checks
}}
{{/each}}
@ -57,7 +57,7 @@
data-test-node=item.Node.Node
name=item.Node.Node
service=item.Service.ID
address=(concat item.Node.Address ':' item.Service.Port)
address=(concat item.Service.Address ':' item.Service.Port)
checks=item.Checks
status=item.Checks.[0].Status
}}

View File

@ -30,18 +30,21 @@ Feature: dc / services / show: Show Service
Service:
ID: passing-service-8080
Port: 8080
Node:
Address: 1.1.1.1
Node:
Address: 1.2.2.2
- Service:
ID: service-8000
Port: 8000
Node:
Address: 2.2.2.2
Node:
Address: 2.3.3.3
- Service:
ID: service-8888
Port: 8888
Node:
Address: 3.3.3.3
Node:
Address: 3.4.4.4
---
When I visit the service page for yaml
---