diff options
| author | Massimiliano Minella <massimiliano.minella@se.com> | 2026-06-03 18:36:18 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-06-10 18:17:10 +0000 |
| commit | 9d0007a369deb4a6346f5ab7a9e6d432a8ed14fe (patch) | |
| tree | c8eb06864b873b03baee90704e491ad4ffac22cb /classes/meta-virt-hosts.bbclass | |
| parent | 69efbf20980323bf0602ed85d44c0cc19ef5c6bf (diff) | |
| download | meta-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 'classes/meta-virt-hosts.bbclass')
0 files changed, 0 insertions, 0 deletions
