Skip to content

Commit

Permalink
feat: add new pre-commit hook: validate ibm_catalog.json inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
akocbekIBM committed Dec 17, 2024
1 parent 7cc8e6f commit 2cd8c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module-assets/ci/validateIbmCatalogJson.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def check_ibm_catalog_file(da_name):
ibm_catalog = json.load(f)
if ibm_catalog and "products" in ibm_catalog and ibm_catalog["products"]:
for product in ibm_catalog["products"]:
if "flavors" in ibm_catalog["products"] and product["flavors"]:
if "flavors" in product and product["flavors"]:
for flavor in product["flavors"]:
if (
"working_directory" in flavor
Expand Down

0 comments on commit 2cd8c0f

Please sign in to comment.