diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b25c15b..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*~ diff --git a/libexec/check_rattail_daemon_by_ssh.py b/libexec/check_rattail_daemon_by_ssh.py index 5aa0391..1ce64c2 100755 --- a/libexec/check_rattail_daemon_by_ssh.py +++ b/libexec/check_rattail_daemon_by_ssh.py @@ -108,11 +108,7 @@ if __name__ == '__main__': # Ok now connect, and try to get values for memory client = schecks.connect(hostname, port, ssh_key_file, passphrase, user) - result = execute_check(client, check_path) - if result is False: - print("failed to execute remote check!") - sys.exit(3) - else: - output, exitcode = result - print(output) - sys.exit(exitcode) + result, exitcode = execute_check(client, check_path) + + print result + sys.exit(exitcode)