File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,17 @@ def get_branch_key_id(
25
25
"""Returns branch key ID from the tenant ID in input's encryption context."""
26
26
encryption_context : Dict [str , str ] = param .encryption_context
27
27
28
- if b"tenant" not in encryption_context :
28
+ print (f"{ encryption_context = } " )
29
+
30
+ if "tenant" not in encryption_context :
29
31
raise ValueError ("EncryptionContext invalid, does not contain expected tenant key value pair." )
30
32
31
- tenant_key_id : str = encryption_context .get (b "tenant" )
33
+ tenant_key_id : str = encryption_context .get ("tenant" )
32
34
branch_key_id : str
33
35
34
- if tenant_key_id == b "TenantA" :
36
+ if tenant_key_id == "TenantA" :
35
37
branch_key_id = self .branch_key_id_for_tenant_A
36
- elif tenant_key_id == b "TenantB" :
38
+ elif tenant_key_id == "TenantB" :
37
39
branch_key_id = self .branch_key_id_for_tenant_B
38
40
else :
39
41
raise ValueError (f"Item does not contain valid tenant ID: { tenant_key_id = } " )
You can’t perform that action at this time.
0 commit comments