Skip to content

Commit

Permalink
fix debug always not sent to underlying factdb
Browse files Browse the repository at this point in the history
  • Loading branch information
omer9564 committed Dec 9, 2024
1 parent eaeddf3 commit a5600ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions horizon/enforcer/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,10 @@ async def _is_allowed_factdb(
):
headers = transform_headers(request)
url = f"{sidecar_config.FACTDB_SERVICE_URL}/v1/authz{path}"
payload = None if query is None else {"input": jsonable_encoder(query)}
_encoded_query = jsonable_encoder(query)
payload = None if query is None else {"input": _encoded_query}
exc = None
if query is not None and isinstance(query, dict):
if _encoded_query is not None and isinstance(_encoded_query, dict):
_set_use_debugger(payload)
try:
logger.info(
Expand Down

0 comments on commit a5600ac

Please sign in to comment.