From 0fa074c7dbd9b5e72a4868a2db0a8f6b246c7627 Mon Sep 17 00:00:00 2001 From: badrogger Date: Tue, 1 Oct 2024 15:55:53 +0000 Subject: [PATCH] Fix linter --- core/schains/cleaner.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/schains/cleaner.py b/core/schains/cleaner.py index 53c9bd43..f006d439 100644 --- a/core/schains/cleaner.py +++ b/core/schains/cleaner.py @@ -109,7 +109,11 @@ def monitor(skale, node_config, dutils=None): for schain_name in schains_on_node: if schain_name not in schain_names_on_contracts: - logger.warning('%s was found on node, but not on contracts: %s, trying to cleanup', schain_name, schain_names_on_contracts) + logger.warning( + '%s was found on node, but not on contracts: %s, trying to cleanup', + schain_name, + schain_names_on_contracts, + ) try: ensure_schain_removed(skale, schain_name, node_config.id, dutils=dutils) except Exception: @@ -240,9 +244,7 @@ def cleanup_schain( ) check_status = checks.get_all() if check_status['skaled_container'] or is_exited( - schain_name, - container_type=ContainerType.schain, - dutils=dutils + schain_name, container_type=ContainerType.schain, dutils=dutils ): remove_schain_container(schain_name, dutils=dutils) if check_status['volume']: @@ -259,9 +261,7 @@ def cleanup_schain( rc.cleanup() if estate is not None and estate.ima_linked: if check_status.get('ima_container', False) or is_exited( - schain_name, - container_type=ContainerType.ima, - dutils=dutils + schain_name, container_type=ContainerType.ima, dutils=dutils ): remove_ima_container(schain_name, dutils=dutils) if check_status['config_dir']: