diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3fad746f..fcfda377 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Brewtils Changelog ================== +3.24.4 +------ +TBD + +- Fixed bug client passed into Plugin would not initialize the commands for Remote Plugins + 3.24.3 ------ 3/8/2024 diff --git a/brewtils/plugin.py b/brewtils/plugin.py index 9f874aa8..cbafc0a9 100644 --- a/brewtils/plugin.py +++ b/brewtils/plugin.py @@ -217,8 +217,7 @@ def __init__(self, client=None, system=None, logger=None, **kwargs): global CLIENT # Make sure this is set after self._system if client: - self._client = client - CLIENT = client + self._set_client(client) else: self._client = None @@ -272,6 +271,9 @@ def client(self, new_client): if new_client is None: return + self._set_client(new_client) + + def _set_client(self, new_client): # Several _system properties can come from the client, so update if needed if not self._system.name: self._system.name = getattr(new_client, "_bg_name") # noqa