From 10b1580ecfdafff38c02581eb45a469b2b2b556d Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Fri, 8 Dec 2023 11:17:29 -0700 Subject: cephadm: add runtime python minor version to RPM query macro when multiple versions of python are installed, the `python3dist` macro produces a multiline string causing later rpm query commands to fail. Signed-off-by: Michael Fritch --- src/cephadm/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cephadm/build.py') diff --git a/src/cephadm/build.py b/src/cephadm/build.py index 1634eeac593..63e70d91d23 100755 --- a/src/cephadm/build.py +++ b/src/cephadm/build.py @@ -328,7 +328,7 @@ def _install_rpm_deps(tempdir, config): def _deps_from_rpm(tempdir, config, dinfo, pkg): # first, figure out what rpm provides a particular python lib - dist = f'python3dist({pkg})'.lower() + dist = f'python3.{sys.version_info.minor}dist({pkg})'.lower() try: res = subprocess.run( ['rpm', '-q', '--whatprovides', dist], -- cgit v1.2.3