Skip to content

Commit da40484

Browse files
author
Kyr Shatskyy
committed
qa/tasks/workunit: fix no module named 'pipes'
Python 3.13 finally dropped the 'pipes' module, replacing it with shlex. Fixes: https://tracker.ceph.com/issues/73498 Signed-off-by: Kyr Shatskyy <[email protected]>
1 parent 5caea33 commit da40484

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qa/tasks/workunit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Workunit task -- Run ceph on sets of specific clients
33
"""
44
import logging
5-
import pipes
65
import os
76
import re
87
import shlex
@@ -405,7 +404,7 @@ def _run_tests(ctx, refspec, role, tests, env, basedir,
405404
]
406405
if env is not None:
407406
for var, val in env.items():
408-
quoted_val = pipes.quote(val)
407+
quoted_val = shlex.quote(val)
409408
env_arg = '{var}={val}'.format(var=var, val=quoted_val)
410409
args.append(run.Raw(env_arg))
411410
if coverage_and_limits:

0 commit comments

Comments
 (0)