]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm/build: Fix _has_python_pip() function check 65934/head
authorKefu Chai <k.chai@proxmox.com>
Tue, 14 Oct 2025 13:26:06 +0000 (21:26 +0800)
committerKefu Chai <k.chai@proxmox.com>
Tue, 14 Oct 2025 13:50:35 +0000 (21:50 +0800)
commite7317a836a7ea6d0d6e923b3816c29a1e10a4d7c
treef69bb1ac54454e39c4e61cc0657e77d3050d1a64
parentaf633b0c80ad9b2b5ead75c56dc70daf7a3efd36
cephadm/build: Fix _has_python_pip() function check

The _has_python_pip() function was incorrectly checking for the venv
module instead of pip, causing it to always return the wrong result.
This would prevent proper detection of whether pip is available during
the cephadm build process.

Fix by changing the module check from 'venv' to 'pip'.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/cephadm/build.py