bug fix: port was provided as option, but not used
This commit is contained in:
parent
0cc5fedb75
commit
71454ee362
@ -25,7 +25,7 @@ if __name__ == '__main__':
|
||||
help="specify this slave's response label (default: %default)")
|
||||
|
||||
parser.add_option('-p', '--port',
|
||||
type="int", dest="port", default='6666',
|
||||
type="int", dest="port", default=6666,
|
||||
help="specify the port to use on the server (default: %default)")
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
@ -36,7 +36,7 @@ if __name__ == '__main__':
|
||||
server, input_file = args
|
||||
myname = options.label
|
||||
|
||||
m = QueueManager(address=(server, 50000), authkey='asdf')
|
||||
m = QueueManager(address=(server, options.port), authkey='asdf')
|
||||
m.connect()
|
||||
|
||||
inq = m.get_inqueue()
|
||||
|
Loading…
Reference in New Issue
Block a user