bug: fix vnish shutting-down handling.

This commit is contained in:
Brett Rowan
2024-04-07 17:16:37 -06:00
parent 445d621590
commit 65c7f2f66f

View File

@@ -225,9 +225,10 @@ class VNish(BMMiner):
if web_summary is not None: if web_summary is not None:
try: try:
is_mining = ( is_mining = not web_summary["miner"]["miner_status"]["miner_state"] in [
not web_summary["miner"]["miner_status"]["miner_state"] == "stopped" "stopped",
) "shutting-down",
]
return is_mining return is_mining
except LookupError: except LookupError:
pass pass