Skip to content

Commit

Permalink
Use system requires instead of config
Browse files Browse the repository at this point in the history
  • Loading branch information
1maple1 committed Aug 21, 2024
1 parent e1c1053 commit a2e31b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions brewtils/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a2e31b6

Please sign in to comment.