From 0c240c11caa1673eebe10c2bd88f780e8ad01123 Mon Sep 17 00:00:00 2001 From: hauksta Date: Mon, 13 Jan 2025 16:58:20 +0100 Subject: [PATCH] fix subscription check output and usage string (was tuple) --- check_pve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_pve.py b/check_pve.py index 2fcd351..f18cae3 100755 --- a/check_pve.py +++ b/check_pve.py @@ -457,7 +457,7 @@ def check_subscription(self) -> None: message = f"{subscription_product_name} is valid until {subscription_due_date}" message_warning_critical = ( - "{subscription_product_name} will expire in {delta} days ({subscription_due_date})" + f"{subscription_product_name} will expire in {delta} days ({subscription_due_date})" ) self.check_thresholds( @@ -1120,7 +1120,7 @@ def parse_args(self) -> None: p.print_usage() message = ( f"{p.prog}: error: --mode {options.mode} requires either " - "vm name (--name) or id (--vmid)", + "vm name (--name) or id (--vmid)" ) self.output(CheckState.UNKNOWN, message)