QemuImgInfo: Fix inconsistent value format of encrypted
The qemu-img info command shows the encrpyed field in different formats
according to the output format. When the default human format is used
the field can be 'yes' or None while when json format is used the same
field can be True or False.
This change ensures the corresponding attribute has the consistent
format regardless of the output format used.
Closes-Bug: #1942682
Change-Id: I949f07582a708114fdfba76f1a05aa3a3e5c4f40
(cherry picked from commit 2922a3491a5987aa80f0612df44bd60ed22a0225)
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.utils/ +/814264 /opendev. org/openstack/ oslo.utils/ commit/ 3e81ba70a617c45 0b4d7d71a95d323 c7af035405
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 3e81ba70a617c45 0b4d7d71a95d323 c7af035405
Author: Takashi Kajinami <email address hidden>
Date: Sat Sep 4 23:03:17 2021 +0900
QemuImgInfo: Fix inconsistent value format of encrypted
The qemu-img info command shows the encrpyed field in different formats
according to the output format. When the default human format is used
the field can be 'yes' or None while when json format is used the same
field can be True or False.
This change ensures the corresponding attribute has the consistent
format regardless of the output format used.
Closes-Bug: #1942682 14fdfba76f1a05a a3a3e5c4f40 a80f0612df44bd6 0ed22a0225)
Change-Id: I949f07582a7081
(cherry picked from commit 2922a3491a5987a