From a2e31b628ed0b56f0019027605ff95832270a401 Mon Sep 17 00:00:00 2001 From: 1maple1 <160027655+1maple1@users.noreply.github.com> Date: Wed, 21 Aug 2024 09:11:32 +0000 Subject: [PATCH] Use system requires instead of config --- brewtils/plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/brewtils/plugin.py b/brewtils/plugin.py index b45c5fe6..b5b37e8b 100644 --- a/brewtils/plugin.py +++ b/brewtils/plugin.py @@ -404,8 +404,8 @@ def get_system_dependency(self, require, timeout=300): f"Failed to resolve {self._system} dependency for {require}" ) - def await_dependencies(self, config): - for req in config.requires: + def await_dependencies(self, requires, config): + for req in requires: system = self.get_system_dependency(req, config.requires_timeout) self.logger.info( f"Resolved system {system} for {req}: {config.name} {config.instance_name}" @@ -451,8 +451,8 @@ def _startup(self): self._admin_processor.startup() try: - if self._config.requires: - self.await_dependencies(self._config) + if self._system.requires: + self.await_dependencies(self._system.requires, self._config) except PluginValidationError: raise else: