Skip to content

Commit

Permalink
Feat/better checking for syntax (#513)
Browse files Browse the repository at this point in the history
* feat: adding error for when suspended accounts are listed in the manifest file explicitly
  • Loading branch information
eamonnfaherty committed May 4, 2022
1 parent 81f3795 commit a05ee2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion servicecatalog_puppet/manifest_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def expand_manifest(manifest, client):
account_id = account.get("account_id")
logger.info("Found an account: {}".format(account_id))
expanded_account = expand_account(account, client, account_id, manifest)
temp_accounts.append(expanded_account)
if expanded_account is None:
raise Exception(f"You have listed account: {account_id} which is not ACTIVE")
elif account.get("ou"):
ou = account.get("ou")
logger.info("Found an ou: {}".format(ou))
Expand Down

0 comments on commit a05ee2e

Please sign in to comment.