Skip to content

Commit

Permalink
In case that APIer is enabled make DataManager mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoV authored and danbogos committed Apr 8, 2020
1 parent e06ae9c commit cdb6852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/datadb.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (db *DataDBService) mandatoryDB() bool {
return db.cfg.RalsCfg().Enabled || db.cfg.SchedulerCfg().Enabled || db.cfg.ChargerSCfg().Enabled ||
db.cfg.AttributeSCfg().Enabled || db.cfg.ResourceSCfg().Enabled || db.cfg.StatSCfg().Enabled ||
db.cfg.ThresholdSCfg().Enabled || db.cfg.SupplierSCfg().Enabled || db.cfg.DispatcherSCfg().Enabled ||
db.cfg.LoaderCfg().Enabled()
db.cfg.LoaderCfg().Enabled() || db.cfg.ApierCfg().Enabled
}

// GetDM returns the DataManager
Expand Down

0 comments on commit cdb6852

Please sign in to comment.