Skip to content
Snippets Groups Projects
Commit 401a3e19 authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Introduce issue #39 + quick fix for it

parent b16e30c4
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -127,6 +127,9 @@ class Minion(MarkdownContent): ...@@ -127,6 +127,9 @@ class Minion(MarkdownContent):
return max([p.get('percent', 0) for p in self.data.get('mounted_devices', [])]) return max([p.get('percent', 0) for p in self.data.get('mounted_devices', [])])
except (AttributeError, ValueError): except (AttributeError, ValueError):
return 0 return 0
except (TypeError):
# Sorry for this dirty hack, but webprojects2 reports bad data. -JPT (See issue #39)
return 0
def __str__(self): def __str__(self):
return self.fqdn return self.fqdn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment