Skip to content

Commit

Permalink
tasks: set device status to verbose and fix return
Browse files Browse the repository at this point in the history
Signed-off-by: kimpaller <[email protected]>
  • Loading branch information
kimpaller committed Oct 29, 2024
1 parent 93d3e29 commit 887d53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nebula/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 887d53d

Please sign in to comment.