Skip to content
Merged
Prev Previous commit
Next Next commit
refactor: use kwargs for EncryptionConfig conversion
  • Loading branch information
larkee committed Mar 11, 2021
commit 1b2eb67b69b0f9e121cb61407dae138366943ef0
4 changes: 1 addition & 3 deletions google/cloud/spanner_v1/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ def __init__(
self._logger = logger

if type(encryption_config) == dict:
self._encryption_config = EncryptionConfig(
kms_key_name=encryption_config["kms_key_name"]
)
self._encryption_config = EncryptionConfig(**encryption_config)
else:
self._encryption_config = encryption_config

Expand Down