[SMOKE] ignore internal containers in down count
This commit is contained in:
1 parent
7b98ba3dd7
commit
690ebe3376
4 files changed
+92
-1
No files matched your search
@@ -51,7 +51,7 @@ def check_core():
|
||||
try:
|
||||
d = get(HUB + "/status.json", 30)
|
||||
total = len(d.get("services") or [])
|
||||
down = len([s for s in (d.get("services") or []) if not s.get("up")])
|
||||
down = len([s for s in (d.get("services") or []) if not s.get("up") and not s.get("internal")])
|
||||
if total >= 70 and down <= 3:
|
||||
ok("службы", "%d всего, лежит %d" % (total, down))
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user