From 9fd862763b4dfac4f4015871d705cddd4d072eb5 Mon Sep 17 00:00:00 2001 From: Nick Todd Date: Wed, 30 Oct 2024 11:11:07 +0000 Subject: [PATCH] #2913: Ensure optional software in config file is enabled. --- src/primaite/game/game.py | 2 +- src/primaite/simulator/system/applications/database_client.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/primaite/game/game.py b/src/primaite/game/game.py index c8fbac4e..7c2f49e7 100644 --- a/src/primaite/game/game.py +++ b/src/primaite/game/game.py @@ -376,7 +376,7 @@ class PrimaiteGame: if service_class is not None: _LOGGER.debug(f"installing {service_type} on node {new_node.hostname}") - new_node.software_manager.install(service_class) + new_node.software_manager.install(service_class, **service_cfg.get('options', {})) new_service = new_node.software_manager.software[service_class.__name__] # fixing duration for the service diff --git a/src/primaite/simulator/system/applications/database_client.py b/src/primaite/simulator/system/applications/database_client.py index e030b306..2b2be7b2 100644 --- a/src/primaite/simulator/system/applications/database_client.py +++ b/src/primaite/simulator/system/applications/database_client.py @@ -309,6 +309,9 @@ class DatabaseClient(Application, identifier="DatabaseClient"): if not self._can_perform_action(): return None if self.server_ip_address is None: + self.sys_log.warning( + f"{self.name}: Database server IP address not provided." + ) return None connection_request_id = str(uuid4())