From: Thierry Parmentelat Date: Mon, 9 Jan 2012 13:21:04 +0000 (+0100) Subject: tweak the way the return value is inspected to retrieve the X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e93e80276c2cd4c915bde00899ead34a744cda2b;p=infrastructure.git tweak the way the return value is inspected to retrieve the 'interface' key --- diff --git a/scripts/check_sfa_peer.py b/scripts/check_sfa_peer.py index 568b57a..e9244c0 100755 --- a/scripts/check_sfa_peer.py +++ b/scripts/check_sfa_peer.py @@ -15,6 +15,7 @@ ALL = { import signal,sys from sfa.client.sfaserverproxy import SfaServerProxy +from sfa.client.return_value import ReturnValue class TimeOutException(Exception): pass @@ -46,7 +47,7 @@ def try_peer(url): error += 1 return try: - iface = version['interface'] + iface = ReturnValue.get_value(version)['interface'] except: iface = '(unknown)' print "\t[ OK ] %s (%s)" % (url,iface),