From 12dc69687ceb566f596cb022257be886a1de2b95 Mon Sep 17 00:00:00 2001 From: waxao <93954355+waxao@users.noreply.github.com> Date: Mon, 8 Nov 2021 15:49:31 -0800 Subject: [PATCH] Update structures.py --- .../src/dynamodb_encryption_sdk/structures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-dynamodb-encryption-python-master/src/dynamodb_encryption_sdk/structures.py b/aws-dynamodb-encryption-python-master/src/dynamodb_encryption_sdk/structures.py index 61b329c..2dfaac2 100644 --- a/aws-dynamodb-encryption-python-master/src/dynamodb_encryption_sdk/structures.py +++ b/aws-dynamodb-encryption-python-master/src/dynamodb_encryption_sdk/structures.py @@ -183,7 +183,7 @@ def set_index_keys(self, *keys): for key in keys: index_action = min(self.action(key), CryptoAction.SIGN_ONLY) try: - if self.attribute_actions[key] is not index_action: + if self.attribute_actions[key] != index_action: raise InvalidArgumentError( 'Cannot overwrite a previously requested action on indexed attribute: "{}"'.format(key) )