Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
d72c9f0d
Commit
d72c9f0d
authored
Sep 10, 2015
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make use of 'metadataMap.instanceId' consistent
parent
bea48c51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
DomainExtractingServerList.java
...oud/netflix/ribbon/eureka/DomainExtractingServerList.java
+1
-1
DomainExtractingServerListTests.java
...etflix/ribbon/eureka/DomainExtractingServerListTests.java
+1
-1
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/ribbon/eureka/DomainExtractingServerList.java
View file @
d72c9f0d
...
...
@@ -105,7 +105,7 @@ class DomainExtractingServer extends DiscoveryEnabledServer {
DiscoveryEnabledServer
enabled
=
(
DiscoveryEnabledServer
)
server
;
InstanceInfo
instance
=
enabled
.
getInstanceInfo
();
if
(
instance
.
getMetadata
().
containsKey
(
"instanceId"
))
{
return
instance
.
getMetadata
().
get
(
"instanceId"
);
return
instance
.
get
HostName
()+
":"
+
instance
.
get
Metadata
().
get
(
"instanceId"
);
}
}
return
super
.
getId
();
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/ribbon/eureka/DomainExtractingServerListTests.java
View file @
d72c9f0d
...
...
@@ -98,7 +98,7 @@ public class DomainExtractingServerListTests {
actualServer
instanceof
DomainExtractingServer
);
DomainExtractingServer
des
=
DomainExtractingServer
.
class
.
cast
(
actualServer
);
assertEquals
(
"zone was wrong"
,
zone
,
des
.
getZone
());
assertEquals
(
"instanceId was wrong"
,
INSTANCE_ID
,
des
.
getId
());
assertEquals
(
"instanceId was wrong"
,
HOST_NAME
+
":"
+
INSTANCE_ID
,
des
.
getId
());
return
des
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment