|
@@ -152,13 +152,12 @@ def check_app_websoft9(app_name):
|
|
|
|
|
|
|
|
|
|
def check_directory(path):
|
|
def check_directory(path):
|
|
- output = shell_execute.execute_command_output_all("ls " + path)
|
|
|
|
- if int(output["code"]) == 0:
|
|
|
|
|
|
+ try:
|
|
|
|
+ shell_execute.execute_command_output_all("ls " + path)
|
|
return True
|
|
return True
|
|
- else:
|
|
|
|
|
|
+ except CommandException as ce:
|
|
return False
|
|
return False
|
|
|
|
|
|
-
|
|
|
|
def check_app_compose(path):
|
|
def check_app_compose(path):
|
|
myLogger.info_logger("Checking port...")
|
|
myLogger.info_logger("Checking port...")
|
|
port_dic = read_env(path, "APP_.*_PORT")
|
|
port_dic = read_env(path, "APP_.*_PORT")
|