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.
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.utils/ +/807456 /opendev. org/openstack/ oslo.utils/ commit/ 2922a3491a5987a a80f0612df44bd6 0ed22a0225
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 2922a3491a5987a a80f0612df44bd6 0ed22a0225
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
Change-Id: I949f07582a7081