From 2f8163f0f5e04d9bd477229ef6617b7411df1bed Mon Sep 17 00:00:00 2001 From: vgallegoiz Date: Sun, 5 May 2024 23:47:56 +0200 Subject: [PATCH] Failed arg --- status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status.py b/status.py index 19c9fab..f9ba31d 100644 --- a/status.py +++ b/status.py @@ -60,7 +60,7 @@ def check_ping(hosts, fails): save_status(fails) def save_status(fails): - with open("failed.txt", "w") as file: + with open(args.failed, "w") as file: for fail in fails: file.write(str(fail) + "\n") file.close