Explorar o código

Update docker.py

qiaofeng1227 %!s(int64=2) %!d(string=hai) anos
pai
achega
4bf1eb781b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      appmanage/api/utils/docker.py

+ 1 - 1
appmanage/api/utils/docker.py

@@ -89,7 +89,7 @@ def check_app_id(app_id):
     if app_id == None:
         code = const.ERROR_CLIENT_PARAM_BLANK
         message = "AppID is null"
-    elif re.match('^[a-z0-9]+_[a-z0-9]+$', app_id) == None::
+    elif re.match('^[a-z0-9]+_[a-z0-9]+$', app_id) == None:
         code = const.ERROR_CLIENT_PARAM_Format
         message = "APP name can only be composed of numbers and lowercase letters"
     myLogger.info_logger(code)