From b28dcc27bb7d7f8bd2c4dc1cb327e352832e514b Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 30 Jan 2024 13:35:38 +0100 Subject: [PATCH] Error message for wrong pool_path --- alakazam.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alakazam.py b/alakazam.py index d21dc74..b509877 100755 --- a/alakazam.py +++ b/alakazam.py @@ -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