Skip to content
Snippets Groups Projects
Commit 17ba6a7c authored by Bob Lantz's avatar Bob Lantz
Browse files

Add ip:port shorthand to Controller

Fixes #475
parent f77a8b9e
No related branches found
No related tags found
No related merge requests found
......@@ -1385,6 +1385,10 @@ def __init__( self, name, inNamespace=False, command='controller',
self.command = command
self.cargs = cargs
self.cdir = cdir
# Accept 'ip:port' syntax as shorthand
if ':' in ip:
ip, port = ip.split( ':' )
port = int( port )
self.ip = ip
self.port = port
self.protocol = protocol
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment