From 887d53d3e810545d1f5a2ea00076e77b924758cc Mon Sep 17 00:00:00 2001 From: kimpaller Date: Tue, 29 Oct 2024 12:12:47 +0800 Subject: [PATCH] tasks: set device status to verbose and fix return Signed-off-by: kimpaller --- nebula/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebula/tasks.py b/nebula/tasks.py index 22f1e22..0f35058 100644 --- a/nebula/tasks.py +++ b/nebula/tasks.py @@ -1556,7 +1556,7 @@ def board_status( device = nebula.NetboxDevice(nb) log.info(f"{board_name} status is {device.status()}") if fail_if_inactive: - if device.status() != "Active": + if not device.status() == "Active": raise Exception(f"{board_name} not Active") return