From 97094aba795bfdeb5141f6d0080636635c74a377 Mon Sep 17 00:00:00 2001 From: Nick Todd Date: Wed, 30 Oct 2024 11:15:39 +0000 Subject: [PATCH] #2913: Pre-commit changes. --- src/primaite/game/game.py | 2 +- src/primaite/simulator/system/applications/database_client.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/primaite/game/game.py b/src/primaite/game/game.py index 7c2f49e7..7c5c93bc 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, **service_cfg.get('options', {})) + 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 2b2be7b2..2079194a 100644 --- a/src/primaite/simulator/system/applications/database_client.py +++ b/src/primaite/simulator/system/applications/database_client.py @@ -309,9 +309,7 @@ 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." - ) + self.sys_log.warning(f"{self.name}: Database server IP address not provided.") return None connection_request_id = str(uuid4())