Passwd join fix

This commit is contained in:
Arseniy Kuznetsov
2021-05-23 15:43:51 +02:00
parent ee6c8978b2
commit cbc477eea3
2 changed files with 3 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ FROM python:3-alpine
LABEL org.opencontainers.image.source github.com/akpw/mktxp
WORKDIR /mktxp
COPY . .
RUN pip install ./
RUN pip install ./ && apk add nano
EXPOSE 49090
ENTRYPOINT ["/usr/local/bin/mktxp"]
CMD ["export"]

View File

@@ -215,6 +215,8 @@ class MKTXPConfigHandler:
for key in MKTXPConfigKeys.STR_KEYS:
config_entry_reader[key] = self.config[entry_name][key]
if key is MKTXPConfigKeys.PASSWD_KEY and type(config_entry_reader[key]) is list:
config_entry_reader[key] = ','.join(config_entry_reader[key])
# port
if self.config[entry_name].get(MKTXPConfigKeys.PORT_KEY):