[modules/docker_ps] upper -> lowercase (personal preference)

This commit is contained in:
tobi-wan-kenobi 2020-05-08 16:10:27 +02:00
parent e4f7019f5b
commit 7d7324f6ed

View file

@ -26,7 +26,7 @@ class Module(core.module.Module):
state = [] state = []
if self.__info == "OK - 0": if self.__info == "OK - 0":
state.append("warning") state.append("warning")
elif self.__info in ["n/a", "Off"]: elif self.__info in ["n/a", "off"]:
state.append("critical") state.append("critical")
return state return state
@ -38,7 +38,7 @@ class Module(core.module.Module):
len(cli.containers.list(filters={"status": "running"})) len(cli.containers.list(filters={"status": "running"}))
) )
except ConnectionError: except ConnectionError:
self.__info = "Off" self.__info = "off"
except Exception: except Exception:
self.__info = "n/a" self.__info = "n/a"
return self.__info return self.__info