From e0c1b7b22ac1c95595c055da9aa9e7072eb2596f Mon Sep 17 00:00:00 2001 From: vinny Date: Thu, 2 Nov 2023 08:33:51 -0400 Subject: [PATCH] HARMONY-1624: WIP - Accept multiple catalogs from invoke --- harmony/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/harmony/cli.py b/harmony/cli.py index 33b1d88..51196c6 100644 --- a/harmony/cli.py +++ b/harmony/cli.py @@ -213,7 +213,10 @@ def _invoke(adapter, metadata_dir): if not is_s3_metadata_dir: makedirs(metadata_dir, exist_ok=True) (out_message, out_catalog) = adapter.invoke() - out_catalog.normalize_and_save(metadata_dir, CatalogType.SELF_CONTAINED) + if isinstance(out_catalog, list): + print('handle catalog list') + else: + out_catalog.normalize_and_save(metadata_dir, CatalogType.SELF_CONTAINED) if not is_s3_metadata_dir: with open(path.join(metadata_dir, 'message.json'), 'w') as file: