summaryrefslogtreecommitdiff
path: root/py/demo/IceGrid/allocate/Client.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-03-01 13:12:23 +0000
committerDwayne Boone <dwayne@zeroc.com>2007-03-01 13:12:23 +0000
commit6799cc28d8c40559cfe84476ea7a89b25baaae39 (patch)
tree695b40a884ca8af0bb0b076e42d174574a89b1fa /py/demo/IceGrid/allocate/Client.py
parentFixed warning/error messages to be on a single line (diff)
downloadice-6799cc28d8c40559cfe84476ea7a89b25baaae39.tar.bz2
ice-6799cc28d8c40559cfe84476ea7a89b25baaae39.tar.xz
ice-6799cc28d8c40559cfe84476ea7a89b25baaae39.zip
Bug 1894 - fix return code
Diffstat (limited to 'py/demo/IceGrid/allocate/Client.py')
-rw-r--r--py/demo/IceGrid/allocate/Client.py8
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