Compare commits

..

2 commits

Author SHA1 Message Date
Lance Edgar 7ec8690d72 build: ignore some files 2024-09-13 18:24:34 -05:00
Lance Edgar dec2561db2 Improve error handling when remote check fails 2022-01-28 17:02:36 -06:00
2 changed files with 9 additions and 4 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*~

View file

@ -108,7 +108,11 @@ if __name__ == '__main__':
# Ok now connect, and try to get values for memory # Ok now connect, and try to get values for memory
client = schecks.connect(hostname, port, ssh_key_file, passphrase, user) client = schecks.connect(hostname, port, ssh_key_file, passphrase, user)
result, exitcode = execute_check(client, check_path) result = execute_check(client, check_path)
if result is False:
print result print("failed to execute remote check!")
sys.exit(3)
else:
output, exitcode = result
print(output)
sys.exit(exitcode) sys.exit(exitcode)