As we don't check the version of libguestfs installed this change
handles both the original behaviour where a string is returned and the
newer behaviour by decoding any returned bytes to a string.
Closes-Bug: #1882421
Change-Id: I1c12b2903c1e5bf3a88394493456ad33233f3cd8
(cherry picked from commit 606d588e3eca1d88ad26b4c2cfa3f2e1d5ed553e)
(cherry picked from commit e98935f705a931e3ae666820387a419be1622b64)
(cherry picked from commit 210abc09b857880aa7665fb540f46cb53662a600)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /787902 /opendev. org/openstack/ nova/commit/ 637402eec7f3f7f 552bfc30d16c596 0e3a651395
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/ussuri
commit 637402eec7f3f7f 552bfc30d16c596 0e3a651395
Author: Lee Yarwood <email address hidden>
Date: Fri Apr 23 12:14:42 2021 +0100
guestfs: With libguestfs >= v1.41.1 decode returned bytes to string
libguestfs >= v1.41.1 and commit 0ee02e0117527 changed the return type
of read_file from string to bytes.
https:/ /github. com/libguestfs/ libguestfs/ commit/ 0ee02e0117527b8 6a31b2a88a14994 ce7f15571f
As we don't check the version of libguestfs installed this change
handles both the original behaviour where a string is returned and the
newer behaviour by decoding any returned bytes to a string.
Closes-Bug: #1882421 f3a88394493456a d33233f3cd8 8ad26b4c2cfa3f2 e1d5ed553e) 3ae666820387a41 9be1622b64) aa7665fb540f46c b53662a600)
Change-Id: I1c12b2903c1e5b
(cherry picked from commit 606d588e3eca1d8
(cherry picked from commit e98935f705a931e
(cherry picked from commit 210abc09b857880