Commit 0646721b by Chif Gergő

Fix linter warnings

parent 5b6f9cc1
Pipeline #665 passed with stage
in 0 seconds
...@@ -220,7 +220,7 @@ class NodeList(LoginRequiredMixin, GraphMixin, SingleTableView): ...@@ -220,7 +220,7 @@ class NodeList(LoginRequiredMixin, GraphMixin, SingleTableView):
if node.monitor_info is None: if node.monitor_info is None:
wrong_nodes.append(node.name) wrong_nodes.append(node.name)
message = ', '.join(wrong_nodes) message = ', '.join(wrong_nodes)
if wrong_nodes : if wrong_nodes:
messages.error(self.request, messages.error(self.request,
"Can't reach " + message + " monitor info") "Can't reach " + message + " monitor info")
......
...@@ -370,7 +370,7 @@ class Node(OperatedMixin, TimeStampedModel): ...@@ -370,7 +370,7 @@ class Node(OperatedMixin, TimeStampedModel):
logger.warning('Monitor info is None') logger.warning('Monitor info is None')
return 0 return 0
elif self.monitor_info.get(metric) is None: elif self.monitor_info.get(metric) is None:
logger.warning('Unreachable monitor info of: ' + metric ) logger.warning('Unreachable monitor info of: ' + metric)
return 0 return 0
else: else:
return self.monitor_info.get(metric) return self.monitor_info.get(metric)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment