ceph-mon fix logging when no zombie mons found

Change-Id: Ie45320bce6945cc1e3ea7ac4d6f46a1e50abf621
This commit is contained in:
Phil Sphicas 2019-10-08 22:37:49 +00:00
parent 926348fe24
commit b4004c58bb

View File

@ -33,8 +33,8 @@ expected_mons = extract_mons_from_kubeapi()
print("current mons: %s" % current_mons)
print("expected mons: %s" % expected_mons)
for mon in current_mons:
removed_mon = False
for mon in current_mons:
if not mon in expected_mons:
print("removing zombie mon %s" % mon)
subprocess.call(["ceph", "--cluster", os.environ["NAMESPACE"], "mon", "remove", mon])