From 7d7324f6ede70eff39e2aae8c42efebad0e17ca6 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Fri, 8 May 2020 16:10:27 +0200 Subject: [PATCH] [modules/docker_ps] upper -> lowercase (personal preference) --- modules/contrib/docker_ps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/contrib/docker_ps.py b/modules/contrib/docker_ps.py index cb2a107..3f7e739 100644 --- a/modules/contrib/docker_ps.py +++ b/modules/contrib/docker_ps.py @@ -26,7 +26,7 @@ class Module(core.module.Module): state = [] if self.__info == "OK - 0": state.append("warning") - elif self.__info in ["n/a", "Off"]: + elif self.__info in ["n/a", "off"]: state.append("critical") return state @@ -38,7 +38,7 @@ class Module(core.module.Module): len(cli.containers.list(filters={"status": "running"})) ) except ConnectionError: - self.__info = "Off" + self.__info = "off" except Exception: self.__info = "n/a" return self.__info