Remove legacy references to the websocket HTTP port and backend in platydock.

This commit is contained in:
Fabio Manganiello 2023-05-08 12:25:09 +02:00
parent f5fcccb0bd
commit 3fc622e296
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -251,26 +251,10 @@ def build(args):
# noinspection PyProtectedMember
ports.add(backend_config['http'].get('port', HttpBackend._DEFAULT_HTTP_PORT))
# noinspection PyProtectedMember
ports.add(
backend_config['http'].get(
'websocket_port', HttpBackend._DEFAULT_WEBSOCKET_PORT
)
)
if backend_config.get('tcp'):
ports.add(backend_config['tcp']['port'])
if backend_config.get('websocket'):
from platypush.backend.websocket import WebsocketBackend
# noinspection PyProtectedMember
ports.add(
backend_config['websocket'].get(
'port', WebsocketBackend._default_websocket_port
)
)
dev_dir = os.path.join(workdir, Config.get('device_id'))
generate_dockerfile(
deps=dict(install_cmds),