From e33fa0244df4831cfc10ce44bbca52c153da60d3 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sun, 27 Feb 2022 12:50:17 +0200
Subject: [PATCH] Fix some f-strings.

---
 mnpw/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mnpw/__init__.py b/mnpw/__init__.py
index ddcf9a2..cadb6fe 100644
--- a/mnpw/__init__.py
+++ b/mnpw/__init__.py
@@ -104,7 +104,7 @@ def main():  # noqa: MC0001
         check.run(args.timeout)
     except Exception as ex:  # pylint: disable=broad-except
         if args.errors and not args.dry_run:
-            notify(f"[HOSTNAME] Check {args.command} failed: {ex}.")
+            notify(f"[{HOSTNAME}] Check {args.command} failed: {ex}.")
         parser.error(str(ex))
 
     if check.ExitCode == nagios.NagiosCode.OK:
@@ -126,7 +126,7 @@ def main():  # noqa: MC0001
             f"Check status is invalid for a Nagios plugin ({check.ExitCode})."
         )
         if args.errors:
-            notify(f"[HOSTNAME] Check {args.command} status is invalid.")
+            notify(f"[{HOSTNAME}] Check {args.command} status is invalid.")
 
     if args.chain:
         print(check._stdout)  # pylint: disable=protected-access
-- 
GitLab