appname must 2 length

This commit is contained in:
qiaofeng1227 2023-06-02 10:33:44 +08:00
parent 56b32532d6
commit 99dcc86a25
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
# Install supervisord
# Install supervisords
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh

View File

@ -198,7 +198,7 @@ def check_app(app_name, customer_name, app_version):
elif customer_name == None:
code = const.ERROR_CLIENT_PARAM_BLANK
message = "customer_name is null"
elif len(customer_name) < 1:
elif len(customer_name) < 2:
code = const.ERROR_CLIENT_PARAM_BLANK
message = "customer_name must be longer than 2 chars"
elif app_version == None: