Skip to content

Commit

Permalink
HARMONY-1624: WIP - Accept multiple catalogs from invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyinverso committed Nov 2, 2023
1 parent 9e0de47 commit e0c1b7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion harmony/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e0c1b7b

Please sign in to comment.