Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Bug 1311094 - EAP7 - Native management API port incorrectly detected
Browse files Browse the repository at this point in the history
Update to previous fix: keep 0.0.0.0 in resource name

Conflicts:
	modules/plugins/wfly-10/src/main/java/org/rhq/modules/plugins/wildfly10/BaseProcessDiscovery.java
  • Loading branch information
tsegismont authored and spinder committed Mar 31, 2016
1 parent 509c171 commit 95fba2f
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -197,7 +197,12 @@ protected DiscoveredResourceDetails buildResourceDetails(ResourceDiscoveryContex
initLogEventSourcesConfigProp(logFile.getPath(), pluginConfig);

HostPort managementHostPort = hostConfig.getManagementHostPort(commandLine, getMode());
serverPluginConfig.setHostname(managementHostPort.host);
if ("0.0.0.0".equals(managementHostPort.host)) {
LOG.debug("Discovered management host set to 0.0.0.0, falling back to 127.0.0.1");
serverPluginConfig.setHostname("127.0.0.1");
} else {
serverPluginConfig.setHostname(managementHostPort.host);
}
serverPluginConfig.setPort(managementHostPort.port);
serverPluginConfig.setSecure(managementHostPort.isSecure);
HostPort nativeHostPort = hostConfig.getNativeHostPort(commandLine, getMode());
Expand Down

0 comments on commit 95fba2f

Please sign in to comment.