From 3447dfc29e3b25c3b048477446f59250349ff9e1 Mon Sep 17 00:00:00 2001 From: rkhudov Date: Fri, 14 Jun 2024 14:40:59 +0100 Subject: src/cephadm/box: remove unused imports Signed-off-by: rkhudov --- src/cephadm/box/box.py | 6 +----- src/cephadm/box/host.py | 1 - src/cephadm/box/osd.py | 1 - src/cephadm/box/util.py | 3 +-- 4 files changed, 2 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/cephadm/box/box.py b/src/cephadm/box/box.py index db2f2423351..fd9de7fe3e3 100755 --- a/src/cephadm/box/box.py +++ b/src/cephadm/box/box.py @@ -6,9 +6,8 @@ import json import sys import host import osd -from multiprocessing import Process, Pool +from multiprocessing import Pool from util import ( - BoxType, Config, Target, ensure_inside_container, @@ -19,12 +18,9 @@ from util import ( run_dc_shell_commands, get_container_engine, run_shell_command, - run_shell_commands, - ContainerEngine, DockerEngine, PodmanEngine, colored, - engine, engine_compose, Colors, get_seed_name diff --git a/src/cephadm/box/host.py b/src/cephadm/box/host.py index aae16d07f45..6b49def2318 100644 --- a/src/cephadm/box/host.py +++ b/src/cephadm/box/host.py @@ -12,7 +12,6 @@ from util import ( run_dc_shell_command, run_shell_command, engine, - BoxType ) diff --git a/src/cephadm/box/osd.py b/src/cephadm/box/osd.py index 827a4de36c0..3e559b2fe8c 100644 --- a/src/cephadm/box/osd.py +++ b/src/cephadm/box/osd.py @@ -5,7 +5,6 @@ import re from typing import Dict from util import ( - BoxType, Config, Target, ensure_inside_container, diff --git a/src/cephadm/box/util.py b/src/cephadm/box/util.py index 7dcf883f8a3..4aa5645b26b 100644 --- a/src/cephadm/box/util.py +++ b/src/cephadm/box/util.py @@ -417,5 +417,4 @@ class PodmanEngine(ContainerEngine): def get_container_engine() -> ContainerEngine: if engine() == 'docker': return DockerEngine() - else: - return PodmanEngine() + return PodmanEngine() -- cgit v1.2.3