Comment 7 for bug 1882421

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.opendev.org/c/openstack/nova/+/787712
Committed: https://opendev.org/openstack/nova/commit/606d588e3eca1d88ad26b4c2cfa3f2e1d5ed553e
Submitter: "Zuul (22348)"
Branch: master

commit 606d588e3eca1d88ad26b4c2cfa3f2e1d5ed553e
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/0ee02e0117527b86a31b2a88a14994ce7f15571f

    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