Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
1maple1 committed Apr 23, 2024
1 parent f404399 commit c76c17d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions brewtils/rest/system_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,16 @@ def _wait_for_request(self, request, raise_on_error, timeout):
raise RequestFailedError(request)

# Support cross-server parent/child requests. Add parent if request has different host.
if request.parent is None and brewtils.plugin.CONFIG and (
brewtils.plugin.CONFIG.bg_host.upper()
!= self._easy_client.client.bg_host.upper()
or brewtils.plugin.CONFIG.bg_port != self._easy_client.client.bg_port
or brewtils.plugin.CONFIG.bg_url_prefix
!= self._easy_client.client.bg_url_prefix
if (
request.parent is None
and brewtils.plugin.CONFIG
and (
brewtils.plugin.CONFIG.bg_host.upper()
!= self._easy_client.client.bg_host.upper()
or brewtils.plugin.CONFIG.bg_port != self._easy_client.client.bg_port
or brewtils.plugin.CONFIG.bg_url_prefix
!= self._easy_client.client.bg_url_prefix
)
):
request.parent = getattr(
brewtils.plugin.request_context, "current_request", None
Expand Down

0 comments on commit c76c17d

Please sign in to comment.