Skip to content

Commit 1b2eb67

Browse files
committed
refactor: use kwargs for EncryptionConfig conversion
1 parent 0b7844c commit 1b2eb67

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

google/cloud/spanner_v1/database.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ def __init__(
141141
self._logger = logger
142142

143143
if type(encryption_config) == dict:
144-
self._encryption_config = EncryptionConfig(
145-
kms_key_name=encryption_config["kms_key_name"]
146-
)
144+
self._encryption_config = EncryptionConfig(**encryption_config)
147145
else:
148146
self._encryption_config = encryption_config
149147

0 commit comments

Comments
 (0)