Fixed assignment of the session clientId and port_num fields.

This commit is contained in:
Rod A Santiago 2016-08-22 16:10:48 -07:00
parent 1dfacdbaea
commit 695da8a153

View file

@ -214,9 +214,9 @@ class CoreApiBridge(object):
print "\topaque=", sessMsg.getOpaque()
'''
sessions = sessMsg.getNumber().split("|")
port_num = int(sessions[0])
port_num = int(sessions[-1])
newMsg = coreapi2.CoreMessage()
newMsg.session.clientId = 'client' + sessions[0]
newMsg.session.clientId = 'client' + sessions[-1]
newMsg.session.port_num = port_num
# List active experiments in the server