Skip to content

Commit

Permalink
Do not fail all of KMS for a region if one key cannot be described (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-lane authored Oct 29, 2021
1 parent 3923667 commit 172f0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartography/intel/aws/kms.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_kms_key_list(boto3_session: boto3.session.Session, region: str) -> List[
response = client.describe_key(KeyId=key["KeyId"])['KeyMetadata']
except ClientError as e:
logger.warning("Failed to describe key with key id - {}. Error - {}".format(key["KeyId"], e))
raise
continue

described_key_list.append(response)

Expand Down

0 comments on commit 172f0c9

Please sign in to comment.