tweak the way the return value is inspected to retrieve the
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 9 Jan 2012 13:21:04 +0000 (14:21 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 9 Jan 2012 13:21:04 +0000 (14:21 +0100)
'interface' key

scripts/check_sfa_peer.py

index 568b57a..e9244c0 100755 (executable)
@@ -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),