Error message for wrong pool_path
This commit is contained in:
parent
197d50386d
commit
b28dcc27bb
|
@ -417,6 +417,9 @@ def execute_cmds(app_config):
|
|||
def cli(loglevel, pool_path, config_path):
|
||||
global CONFIGS
|
||||
pool_configs = merge_pool_configs(config_path)
|
||||
if not Path(pool_path).exists():
|
||||
logging.error(f"{pool_path} does not exists! Are you in the correct directory?")
|
||||
exit(1)
|
||||
instance_configs = get_merged_instance_configs(pool_path, pool_configs)
|
||||
CONFIGS = merge_connection_configs(instance_configs)
|
||||
if loglevel:
|
||||
|
@ -492,7 +495,7 @@ def get_deployed_apps(apps):
|
|||
continue
|
||||
processed_server.append(server)
|
||||
deployed = abra("app", "ls", "-S", "-s", server, "-m", machine_output=True)
|
||||
deployed_domains = [app["domain"] for app in deployed[server]["apps"] if app["status"] == "deployed"]
|
||||
deployed_domains = [app["appName"] for app in deployed[server]["apps"] if app["status"] == "deployed"]
|
||||
deployed_apps.extend(deployed_domains)
|
||||
return deployed_apps
|
||||
|
||||
|
|
Loading…
Reference in New Issue