From d23ccd38fa7f7f702d37609f0cfe692d72ba1c4c Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Thu, 4 Feb 2016 12:15:48 +0000 Subject: [PATCH] Added orchestration.Server remote status retrieval --- orchestra/contrib/orchestration/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/contrib/orchestration/utils.py b/orchestra/contrib/orchestration/utils.py index 9257e801..5d9d2886 100644 --- a/orchestra/contrib/orchestration/utils.py +++ b/orchestra/contrib/orchestration/utils.py @@ -18,7 +18,7 @@ def retrieve_state(servers): if ping.startswith('rtt'): ping = '%s ms' % ping.split('/')[4] else: - ping = 'Offline' + ping = 'Offline' uptime = join(uptime, silent=True) uptime_stderr = uptime.stderr.decode() @@ -26,7 +26,7 @@ def retrieve_state(servers): if uptime: uptime = 'Up %s %s load %s %s %s' % (uptime[2], uptime[3], uptime[-3], uptime[-2], uptime[-1]) else: - uptime = '%s' % uptime_stderr + uptime = '%s' % uptime_stderr state[server.pk] = (ping, uptime) return state