Skip to content

Commit

Permalink
Merge pull request #22 from jplock/jp-fix-org-status
Browse files Browse the repository at this point in the history
[fix] Lambda status
  • Loading branch information
jplock authored Feb 13, 2025
2 parents 85c0d06 + 782495f commit bd79a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/activation_lambda/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@

@helper.create
def create(event: dict, context: LambdaContext):
if status == "ACTIVE":
logger.warning("Organizations access is already active")
if status == "ENABLED":
logger.warning("Organizations access is already enabled")
else:
logger.debug("Activating organizations access...")
cloudformation.activate_organizations_access()
Expand Down

0 comments on commit bd79a61

Please sign in to comment.