diff --git a/server/src/com/cloud/network/security/SecurityGroupManagerImpl.java b/server/src/com/cloud/network/security/SecurityGroupManagerImpl.java index cc367f83105..3d88223e8fa 100755 --- a/server/src/com/cloud/network/security/SecurityGroupManagerImpl.java +++ b/server/src/com/cloud/network/security/SecurityGroupManagerImpl.java @@ -741,8 +741,8 @@ public class SecurityGroupManagerImpl implements SecurityGroupManager, SecurityG public boolean configure(String name, Map params) throws ConfigurationException { Map configs = _configDao.getConfiguration("Network", params); - _numWorkerThreads = NumbersUtil.parseInt(configs.get(Config.SecurityGroupWorkerThreads), WORKER_THREAD_COUNT); - _timeBetweenCleanups = NumbersUtil.parseInt(configs.get(Config.SecurityGroupWorkerThreads), TIME_BETWEEN_CLEANUPS); + _numWorkerThreads = NumbersUtil.parseInt(configs.get(Config.SecurityGroupWorkerThreads.key()), WORKER_THREAD_COUNT); + _timeBetweenCleanups = NumbersUtil.parseInt(configs.get(Config.SecurityGroupWorkCleanupInterval.key()), TIME_BETWEEN_CLEANUPS); /* register state listener, no matter security group is enabled or not */ VirtualMachine.State.getStateMachine().registerListener(this);