From 89eeb31a50edff1279b2e2a42ac8167661a2d054 Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 4 Dec 2023 12:39:44 -0500 Subject: [PATCH] Use Manager0 Signed-off-by: mulhern --- pyproject.toml | 2 +- src/stratis_cli/_actions/_stratisd_version.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6b1808967..c862c2e3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,4 +3,4 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [tool.pylint] -good-names="Manager,ObjectManager,Report" +good-names="Manager0,Manager,ObjectManager,Report" diff --git a/src/stratis_cli/_actions/_stratisd_version.py b/src/stratis_cli/_actions/_stratisd_version.py index e4de864c4..9409a9671 100644 --- a/src/stratis_cli/_actions/_stratisd_version.py +++ b/src/stratis_cli/_actions/_stratisd_version.py @@ -21,6 +21,7 @@ from .._errors import StratisCliStratisdVersionError from ._connection import get_object from ._constants import MAXIMUM_STRATISD_VERSION, MINIMUM_STRATISD_VERSION, TOP_OBJECT +from ._dynamic import make_dyn_class def check_stratisd_version(): @@ -30,8 +31,7 @@ def check_stratisd_version(): :raises StratisCliStratisdVersionError """ - # pylint: disable=import-outside-toplevel - from ._data import Manager0 + Manager0 = make_dyn_class("Manager0") version_spec = SpecifierSet(f">={MINIMUM_STRATISD_VERSION}") & SpecifierSet( f"<{MAXIMUM_STRATISD_VERSION}"