Skip to content

Commit

Permalink
Fix getting Arn for newly created sagemaker policy
Browse files Browse the repository at this point in the history
  • Loading branch information
tkilias committed Nov 28, 2023
1 parent 706a6cc commit 49bc448
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/ci_tests/fixtures/prepare_environment_fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ def _create_sagemaker_policy(iam_client) -> str:
Description='This policy is used for the CI Tests of the exasol.sagemaker-extension',

)
print(response)
return response["Policy"]["ARN"] # FIXME got key error in this line
return response["Policy"]["Arn"]
except iam_client.exceptions.EntityAlreadyExistsException as ex:
print("'EntityAlreadyExistsException' exception is handled")
sts_client = boto3.client('sts')
Expand Down

0 comments on commit 49bc448

Please sign in to comment.