Skip to content

Commit

Permalink
Fixed self reference loop (#413)
Browse files Browse the repository at this point in the history
Fixed self reference loop
  • Loading branch information
TheBurchLog authored Oct 30, 2023
1 parent da127a1 commit daee0e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------
Expand Down
3 changes: 1 addition & 2 deletions brewtils/rest/system_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit daee0e9

Please sign in to comment.