From a374ec73b43e3338c336419cb6dbcdabeba007bf Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Tue, 11 Oct 2022 20:20:08 -0500 Subject: [PATCH] Add login success print test --- auth.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auth.py b/auth.py index 34f05d9..647c300 100644 --- a/auth.py +++ b/auth.py @@ -16,11 +16,13 @@ def login(config, user, password, sysid): ssh.run_ssh(config, command, 'scripts') sleep(1) filename = sysid + "success.txt" - if ssh.check_for_file(config, filename, 'receivelogin') == False: + output = ssh.check_for_file(config, filename, 'receivelogin') + if output == False: filename = sysid + "fail.txt" if ssh.check_for_file(config, filename, 'receivelogin') == False: raise ValueError("Unable to determine login status") else: return False else: - return True \ No newline at end of file + return True + fprint(output) \ No newline at end of file