From daee0e973688c8b16fbd82265bdba9053e3f632d Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Mon, 30 Oct 2023 13:22:33 -0400 Subject: [PATCH] Fixed self reference loop (#413) Fixed self reference loop --- CHANGELOG.rst | 1 + brewtils/rest/system_client.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ba9b94b3..da4016e7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,7 @@ Brewtils Changelog TBD - Expanded Auto Generation to support Literal Type Hinting, if python version >= 3.8 +- Fixed self reference bug in SystemClient 3.19.0 ------ diff --git a/brewtils/rest/system_client.py b/brewtils/rest/system_client.py index 3e18fd33..82628706 100644 --- a/brewtils/rest/system_client.py +++ b/brewtils/rest/system_client.py @@ -203,6 +203,7 @@ def __init__(self, *args, **kwargs): self._loaded = False self._system = None self._commands = {} + self._current_system_namespace = -1 # Need this for back-compatibility (see #836) if len(args) > 2: @@ -257,8 +258,6 @@ def __init__(self, *args, **kwargs): elif len(self._system_namespaces) == 1: self._system_namespace = self._system_namespaces[0] self._current_system_namespace = -1 - else: - self._current_system_namespace = -1 self._always_update = kwargs.get("always_update", False) self._timeout = kwargs.get("timeout", None)