CLOUDSTACK-3539: Fix wrong management ip when server start up

The value "localhost" for mgmt server should be over-written anyway.
This commit is contained in:
Sheng Yang 2013-07-15 18:25:54 -07:00
parent 54e9fe4485
commit 2f85c80655
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ public class ConfigurationServerImpl extends ManagerBase implements Configuratio
Boolean devel = Boolean.valueOf(_configDao.getValue("developer"));
if (devel) {
String value = _configDao.getValue(Config.ManagementHostIPAdr.key());
if (value != null) {
if (value != null && !value.equals("localhost")) {
needUpdateHostIp = false;
}
}