From ab36cc8968ef8180e2dc2fb0dc9cc7bf8cb98091 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Thu, 18 Jun 2015 10:54:51 +0000 Subject: [PATCH] whitespace=>tabs --- management/status_checks.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/management/status_checks.py b/management/status_checks.py index cb740437..749b4a3b 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -41,15 +41,16 @@ def run_checks(rounded_values, env, output, pool): run_domain_checks(rounded_values, env, output, pool) def get_ssh_port(): - # Returns ssh port - output = shell('check_output', ['sshd', '-T']) - returnNext = False + # Returns ssh port - for e in output.split(): - if returnNext: - return int(e) - if e == "port": - returnNext = True + output = shell('check_output', ['sshd', '-T']) + returnNext = False + + for e in output.split(): + if returnNext: + return int(e) + if e == "port": + returnNext = True def run_services_checks(env, output, pool): # Check that system services are running.