diff options
Diffstat (limited to 'py/demo/IceGrid/allocate/Client.py')
-rw-r--r-- | py/demo/IceGrid/allocate/Client.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/py/demo/IceGrid/allocate/Client.py b/py/demo/IceGrid/allocate/Client.py index 8614d638c5f..e1d07675e2b 100644 --- a/py/demo/IceGrid/allocate/Client.py +++ b/py/demo/IceGrid/allocate/Client.py @@ -54,11 +54,11 @@ class SessionKeepAliveThread(threading.Thread): class Client(Ice.Application): def run(self, args): - status = True + status = 0 registry = IceGrid.RegistryPrx.checkedCast(self.communicator().stringToProxy("DemoIceGrid/Registry")) if registry == None: print self.appName() + ": could not contact registry" - return False + return 1 while True: print "This demo accepts any user-id / password combination." @@ -103,10 +103,10 @@ class Client(Ice.Application): break except IceGrid.AllocationException, ex: print self.appName() + ": could not allocate object: " + ex.reason - status = False + status = 1 except: print self.appName() + ": could not allocate object: " + str(sys.exc_info()[0]) - status = False + status = 1 # # Destroy the keepAlive thread and the sesion object otherwise |