Skip to content

Commit

Permalink
protocol_role tracking fix
Browse files Browse the repository at this point in the history
Signed-off-by: Shaanjot Gill <[email protected]>
  • Loading branch information
shaangill025 committed Jul 20, 2023
1 parent 621e4dd commit 86d1be3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aries_cloudagent/multitenant/admin/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_extra_settings_dict_per_tenant(tenant_settings: dict) -> dict:

endorser_role_flag = tenant_settings.get(
"ACAPY_ENDORSER_ROLE"
) or tenant_settings.get("endorser_protocol_role")
) or tenant_settings.get("endorser-protocol-role")
extra_settings = {}
if endorser_role_flag and endorser_role_flag == "author":
extra_settings["endorser.author"] = True
Expand All @@ -102,7 +102,7 @@ def get_extra_settings_dict_per_tenant(tenant_settings: dict) -> dict:
# These flags require endorser role as author, if not set as author then
# this setting will be ignored.
continue
if flag != "ACAPY_ENDORSER_ROLE":
if flag != "ACAPY_ENDORSER_ROLE" and flag != "endorser-protocol-role":
map_flag = ACAPY_LIFECYCLE_CONFIG_FLAG_MAP.get(
flag
) or ACAPY_LIFECYCLE_CONFIG_FLAG_ARGS_MAP.get(flag)
Expand Down
2 changes: 2 additions & 0 deletions aries_cloudagent/settings/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class ProfileSettingsSchema(OpenAPISchema):
def _get_filtered_settings_dict(wallet_settings: dict):
"""Get filtered settings dict to display."""
filter_param_list = list(ACAPY_LIFECYCLE_CONFIG_FLAG_ARGS_MAP.values())
filter_param_list.append("endorser.author")
filter_param_list.append("endorser.endorser")
settings_dict = {}
for param in filter_param_list:
if param in wallet_settings:
Expand Down

0 comments on commit 86d1be3

Please sign in to comment.