Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Oct 1, 2024
1 parent 812a579 commit 0fa074c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/schains/cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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']:
Expand All @@ -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']:
Expand Down

0 comments on commit 0fa074c

Please sign in to comment.