Skip to content

Commit 8ce517d

Browse files
committed
copy the autoEncryptOpts
1 parent d75181a commit 8ce517d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/unified_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ async def _create_entity(self, entity_spec, uri=None):
263263
observe_events = spec.get("observeEvents", [])
264264

265265
if "autoEncryptOpts" in spec:
266-
auto_encrypt_opts = spec["autoEncryptOpts"]
266+
auto_encrypt_opts = spec["autoEncryptOpts"].copy()
267267
auto_encrypt_kwargs: dict = dict(kms_tls_options=DEFAULT_KMS_TLS)
268268
kms_providers = ALL_KMS_PROVIDERS.copy()
269269
key_vault_namespace = auto_encrypt_opts.pop("keyVaultNamespace")

test/unified_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def _create_entity(self, entity_spec, uri=None):
262262
observe_events = spec.get("observeEvents", [])
263263

264264
if "autoEncryptOpts" in spec:
265-
auto_encrypt_opts = spec["autoEncryptOpts"]
265+
auto_encrypt_opts = spec["autoEncryptOpts"].copy()
266266
auto_encrypt_kwargs: dict = dict(kms_tls_options=DEFAULT_KMS_TLS)
267267
kms_providers = ALL_KMS_PROVIDERS.copy()
268268
key_vault_namespace = auto_encrypt_opts.pop("keyVaultNamespace")

0 commit comments

Comments
 (0)