Failed arg

This commit is contained in:
2024-05-05 23:47:56 +02:00
parent d4e7d822a9
commit 2f8163f0f5

View File

@@ -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