summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam King <47704447+adk3798@users.noreply.github.com>2024-01-09 19:32:49 +0100
committerGitHub <noreply@github.com>2024-01-09 19:32:49 +0100
commitcae008918ed33659ad523d9b64037d6f16dc7420 (patch)
tree20f4e7080523ea0eec2ea2792784a32ac0fb1d17 /src
parentMerge pull request #54977 from pcuzner/fix-host-threads-output (diff)
parentcephadm: add runtime python minor version to RPM query macro (diff)
downloadceph-cae008918ed33659ad523d9b64037d6f16dc7420.tar.xz
ceph-cae008918ed33659ad523d9b64037d6f16dc7420.zip
Merge pull request #54948 from mgfritch/cephadm-build-rpm
cephadm: add runtime python minor version to RPM query macro Reviewed-by: John Mulligan <jmulligan@redhat.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cephadm/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cephadm/build.py b/src/cephadm/build.py
index ef2bfef78fd..ed39c84e9af 100755
--- a/src/cephadm/build.py
+++ b/src/cephadm/build.py
@@ -433,7 +433,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],