mirror of https://github.com/apache/cloudstack.git
findbugs explicit toString on enum for call get(Object)
This commit is contained in:
parent
901cf8ab32
commit
cce4a055ae
|
|
@ -218,12 +218,12 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements NetworkGu
|
|||
|
||||
Map<String, String> dbParams = _configDao.getConfiguration(params);
|
||||
|
||||
_cidr = dbParams.get(Config.ControlCidr);
|
||||
_cidr = dbParams.get(Config.ControlCidr.toString());
|
||||
if (_cidr == null) {
|
||||
_cidr = "169.254.0.0/16";
|
||||
}
|
||||
|
||||
_gateway = dbParams.get(Config.ControlGateway);
|
||||
_gateway = dbParams.get(Config.ControlGateway.toString());
|
||||
if (_gateway == null) {
|
||||
_gateway = NetUtils.getLinkLocalGateway();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue