summaryrefslogtreecommitdiffstats
path: root/wic
diff options
context:
space:
mode:
authorMassimiliano Minella <massimiliano.minella@se.com>2026-06-03 18:36:18 +0200
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-06-10 18:17:10 +0000
commit9d0007a369deb4a6346f5ab7a9e6d432a8ed14fe (patch)
treec8eb06864b873b03baee90704e491ad4ffac22cb /wic
parent69efbf20980323bf0602ed85d44c0cc19ef5c6bf (diff)
downloadmeta-virtualization-scarthgap.tar.gz
libvirt: fix python3 compatibility in hook_support.pyscarthgap
By default Popen expects all the streams to be bytes-like objects but, in the Popen.communicate() function call, the "input" argument is a string, making the call fail with the error: qemu hook error: a bytes-like object is required, not 'str' Fix the error by setting text mode to True in the subprocess creation. Also fix the "SyntaxWarning: invalid escape sequence '\w'" in the regex used to match script names. Signed-off-by: Massimiliano Minella <massimiliano.minella@se.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> (cherry picked from commit fb1d9123351c86d7804e78e1518788913fb7c672)
Diffstat (limited to 'wic')
0 files changed, 0 insertions, 0 deletions