Skip to content

Commit fc1aa74

Browse files
author
Chris Steipp
committed
Use startswith instead
1 parent 4a9a45d commit fc1aa74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kmsauth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _format_auth_key(self, keys):
122122
)
123123

124124
def _get_key_arn(self, key):
125-
if key[:12] == 'arn:aws:kms:':
125+
if key.startswith('arn:aws:kms:'):
126126
self.KEY_METADATA[key] = {
127127
'KeyMetadata': {'Arn': key}
128128
}

0 commit comments

Comments
 (0)