Skip to content

Commit 6b8c38a

Browse files
authored
fix: Use actual hostname instead of the one provided by the Spring Cloud (#1434)
Signed-off-by: Jakub Balhar <jakub@balhar.net>
1 parent fc3db97 commit 6b8c38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway-service/src/main/java/org/zowe/apiml/gateway/config/GatewayConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private String getProperty(String property) {
128128
}
129129

130130
public static String getInstanceId(PropertyResolver resolver) {
131-
String hostname = resolver.getProperty("spring.cloud.client.hostname");
131+
String hostname = resolver.getProperty("apiml.service.hostname");
132132
String appName = resolver.getProperty("spring.application.name");
133133

134134
String namePart = IdUtils.combineParts(hostname, SEPARATOR, appName);

0 commit comments

Comments
 (0)