Fixing A1 healthcheck.
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de81e
}
func (rh *Resthook) GetA1Health() bool {
- data, _ := rh.db.GetAll(a1MediatorNs)
- if data != nil {
- a1.Logger.Debug("Database connected and A1 is healthy")
- return true
- }
- return false
+ //TODO : Add database healthcheck
+ a1.Logger.Debug("A1 is healthy")
+ return true
}
func (rh *Resthook) GetAllPolicyType() []models.PolicyTypeID {