Skip to content

Commit 0c535d5

Browse files
committed
Minor renaming
1 parent 688175e commit 0c535d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/confluent_kafka/schema_registry/rules/encryption/hcvault/hcvault_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class HcVaultKmsClient(tink.KmsClient):
3030

3131
def __init__(
3232
self, key_uri: Optional[str], token: Optional[str], ns: Optional[str] = None,
33-
role_id: Optional[str] = None, role_secret_id: Optional[str] = None
33+
role_id: Optional[str] = None, secret_id: Optional[str] = None
3434
) -> None:
3535
"""Creates a new HcVaultKmsClient that is bound to the key specified in 'key_uri'.
3636
@@ -60,8 +60,8 @@ def __init__(
6060
namespace=ns,
6161
verify=False
6262
)
63-
if role_id and role_secret_id:
64-
self._client.auth.approle.login(role_id=role_id, secret_id=role_secret_id)
63+
if role_id and secret_id:
64+
self._client.auth.approle.login(role_id=role_id, secret_id=secret_id)
6565

6666
def does_support(self, key_uri: str) -> bool:
6767
"""Returns true iff this client supports KMS key specified in 'key_uri'.

0 commit comments

Comments
 (0)