Skip to content

Commit

Permalink
fix(vm-status): Check for missing vmid or name
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolai Buchwitz <[email protected]>
  • Loading branch information
nbuchwitz committed Jun 25, 2024
1 parent 5f1ec75 commit 2bb40d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion check_pve.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,11 @@ def parse_args(self) -> None:
message = f"{p.prog}: error: --mode {options.mode} requires node name (--node)"
self.output(CheckState.UNKNOWN, message)

if not options.vmid and not options.name and options.mode in ("vm", "vm_status"):
if (
not options.vmid
and not options.name
and options.mode in ("vm", "vm_status", "vm-status")
):
p.print_usage()
message = (
f"{p.prog}: error: --mode {options.mode} requires either "
Expand Down

0 comments on commit 2bb40d3

Please sign in to comment.