summaryrefslogtreecommitdiff
path: root/test/nagios/soledad_sync.py
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-15 12:51:06 +0200
committerAzul <azul@leap.se>2014-04-17 10:39:59 +0200
commit44d2d031555c889b94e9738cb45740b16a4071ce (patch)
tree8bafaecff89b9c483fc3b019eeb7da0678d7fadf /test/nagios/soledad_sync.py
parenta14f66c2642ff43c2cc497b0597bfb17d19a7139 (diff)
refactor reporting in webapp login nagios test
Diffstat (limited to 'test/nagios/soledad_sync.py')
-rwxr-xr-xtest/nagios/soledad_sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nagios/soledad_sync.py b/test/nagios/soledad_sync.py
index faf552a..a3c2d5a 100755
--- a/test/nagios/soledad_sync.py
+++ b/test/nagios/soledad_sync.py
@@ -58,7 +58,7 @@ def get_soledad_info(config, tempdir):
# get soledad server url
service_url = 'https://%s:%d/%d/config/soledad-service.json' % \
(api['domain'], api['port'], api['version'])
- soledad_hosts = requests.get(service_url).json['hosts']
+ soledad_hosts = requests.get(service_url).json()['hosts']
host = soledad_hosts.keys()[0]
server_url = 'https://%s:%d/user-%s' % \
(soledad_hosts[host]['hostname'], soledad_hosts[host]['port'],