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)