From ca4791b775e338221567dfe82d381a6295a4a25a Mon Sep 17 00:00:00 2001 From: Nicolai Buchwitz Date: Tue, 25 Jun 2024 16:36:18 +0200 Subject: [PATCH] fix(vm-status): Check for missing vmid or name Signed-off-by: Nicolai Buchwitz --- check_pve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pve.py b/check_pve.py index 321b2e7..5e2a268 100755 --- a/check_pve.py +++ b/check_pve.py @@ -1058,7 +1058,7 @@ 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 "