mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-3918
com.cloud.ucs.manager.UcsManagerImpl cannot parse default config
This commit is contained in:
parent
a917cbefc9
commit
2d5f24ceb1
@ -175,7 +175,11 @@ public class UcsManagerImpl implements UcsManager {
|
||||
|
||||
@Override
|
||||
public boolean start() {
|
||||
try {
|
||||
syncBladeInterval = Integer.valueOf(configDao.getValue(Config.UCSSyncBladeInterval.key()));
|
||||
} catch (NumberFormatException e) {
|
||||
syncBladeInterval = 600;
|
||||
}
|
||||
syncBladesExecutor = Executors.newScheduledThreadPool(1, new NamedThreadFactory("UCS-SyncBlades"));
|
||||
syncBladesExecutor.scheduleAtFixedRate(new SyncBladesThread(), syncBladeInterval, syncBladeInterval, TimeUnit.SECONDS);
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user