Skip to content

Commit

Permalink
fix subscription check output and usage string (was tuple)
Browse files Browse the repository at this point in the history
  • Loading branch information
hauksta authored and nbuchwitz committed Feb 13, 2025
1 parent 92b2ec9 commit 34c7d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_pve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 34c7d0e

Please sign in to comment.