Closed Snuffy2 closed 2 months ago
@j358 & @snicker please let me know your thoughts on the revision.
This commit doesn't run for me.
juicepassproxy | Traceback (most recent call last):
juicepassproxy | File "/juicepassproxy/juicepassproxy.py", line 743, in <module>
juicepassproxy | main()
juicepassproxy | File "/juicepassproxy/juicepassproxy.py", line 726, in main
juicepassproxy | udpc_updater = JuiceboxUDPCUpdater(
juicepassproxy | ^^^^^^^^^^^^^^^^^^^^
juicepassproxy | TypeError: JuiceboxUDPCUpdater.__init__() got multiple values for argument 'juicebox_host'
Somehow all of the arguments have been shifted along one when calling JuiceboxUDPCUpdater.
Simple fix would be remove named arguments:
udpc_updater = JuiceboxUDPCUpdater(
args.juicebox_host,
jpp_host,
address[1],
telnet_timeout=telnet_timeout,
)
Or name all arguments:
Line 726
udpc_updater = JuiceboxUDPCUpdater(
juicebox_host=args.juicebox_host,
udpc_host=jpp_host,
udpc_port=address[1],
telnet_timeout=telnet_timeout,
)
Thanks @j358, it looks like I forgot to push my last local commit up. Sorry about that.
Yep looks good to me
After further review and testing of #53, I believe it makes more sense to call this
telnet_timeout
and notudpc_timeout
.Additionally
telnet_timeout
to the other JuiceboxTelnet calls (get_enelx_server_port
andget_juicebox_id
)telnet_timeout
to 30 seconds