Skip to content

Commit 86422b6

Browse files
cephadm: change version checks to use supports_split_cgroups method
Use the recently added supports_split_cgroups method instead of checking for an exact version. Signed-off-by: John Mulligan <[email protected]>
1 parent ba863fd commit 86422b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cephadm/cephadmlib/context_getters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from typing import Any, Dict, List, Optional, Tuple, Union
88

9-
from .constants import CGROUPS_SPLIT_PODMAN_VERSION
109
from .container_engines import Podman
1110
from .context import CephadmContext
1211
from .exceptions import Error
@@ -186,5 +185,5 @@ def should_log_to_journald(ctx: CephadmContext) -> bool:
186185
return ctx.log_to_journald
187186
return (
188187
isinstance(ctx.container_engine, Podman)
189-
and ctx.container_engine.version >= CGROUPS_SPLIT_PODMAN_VERSION
188+
and ctx.container_engine.supports_split_cgroups
190189
)

0 commit comments

Comments
 (0)