modules/plugins/apache/src/main/java/org/rhq/plugins/apache/util/HttpdAddressUtility.java
| 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 771b04e9238e84bb9f269a552b1af837ee33ad85
Author: Lukas Krejci <lkrejci(a)redhat.com>
Date: Thu Mar 24 15:13:50 2011 +0100
BZ 689833 - fixing the discovery regression. The original fix for this bug caused the
discovery to be unable to determine the name to use for the localhost entry.
diff --git
a/modules/plugins/apache/src/main/java/org/rhq/plugins/apache/util/HttpdAddressUtility.java
b/modules/plugins/apache/src/main/java/org/rhq/plugins/apache/util/HttpdAddressUtility.java
index 6b9e686..873d5b8 100644
---
a/modules/plugins/apache/src/main/java/org/rhq/plugins/apache/util/HttpdAddressUtility.java
+++
b/modules/plugins/apache/src/main/java/org/rhq/plugins/apache/util/HttpdAddressUtility.java
@@ -369,7 +369,8 @@ public enum HttpdAddressUtility {
}
if (address.host == null || address.isHostDefault() || address.isHostWildcard())
{
- address = getLocalhost(address.port);
+ Address localhost = getLocalhost(address.port);
+ address.host = localhost.host;
}
updateWithServerName(address, ag);
Show replies by date