Skip to content

Commit cb92ff2

Browse files
authored
Merge pull request ceph#65934 from tchaikov/cephadm-detect-pip
cephadm/build: Fix _has_python_pip() function check Reviewed-by: John Mulligan <[email protected]>
2 parents 3d863d3 + e7317a8 commit cb92ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cephadm/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def _has_python_venv(executable):
423423

424424
def _has_python_pip(executable):
425425
res = _run(
426-
[executable, '-m', 'venv', '--help'], stdout=subprocess.DEVNULL
426+
[executable, '-m', 'pip', '--help'], stdout=subprocess.DEVNULL
427427
)
428428
return res.returncode == 0
429429

0 commit comments

Comments
 (0)