Commit cc0663df authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Monitoring component:

- fixed minor issue when checking monitor_flag of KPIs
parent a6d66b3a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -261,10 +261,10 @@ class ManagementDB():
            else:
                if data[0] == 1:
                    return True
                elif data[0] == 0:
                elif data[0] == 0 or data[0] is None:
                    return False
                else:
                    LOGGER.debug(f"KPI {kpi_id} is wrong")
                    LOGGER.debug(f"KPI {kpi_id} is wrong: {str(data)}")
                    return None
        except sqlite3.Error as e:
            LOGGER.debug(f"KPI {kpi_id} cannot be checked from the ManagementDB: {e}")