Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
3 merge requests!142Release TeraFlowSDN 2.1,!132NetSoft Hackfest extensions, gNMI Driver, gNMI L3NM Service Handler, multiple fixes,!113Draft: NetSoft Hackfest extensions
...@@ -261,10 +261,10 @@ class ManagementDB(): ...@@ -261,10 +261,10 @@ class ManagementDB():
else: else:
if data[0] == 1: if data[0] == 1:
return True return True
elif data[0] == 0: elif data[0] == 0 or data[0] is None:
return False return False
else: else:
LOGGER.debug(f"KPI {kpi_id} is wrong") LOGGER.debug(f"KPI {kpi_id} is wrong: {str(data)}")
return None return None
except sqlite3.Error as e: except sqlite3.Error as e:
LOGGER.debug(f"KPI {kpi_id} cannot be checked from the ManagementDB: {e}") LOGGER.debug(f"KPI {kpi_id} cannot be checked from the ManagementDB: {e}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment