summaryrefslogtreecommitdiff
path: root/oslo_utils/imageutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_utils/imageutils.py')
-rw-r--r--oslo_utils/imageutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_utils/imageutils.py b/oslo_utils/imageutils.py
index 65292dc..d764a7f 100644
--- a/oslo_utils/imageutils.py
+++ b/oslo_utils/imageutils.py
@@ -63,7 +63,7 @@ class QemuImgInfo(object):
self.cluster_size = details.get('cluster-size')
self.disk_size = details.get('actual-size')
self.snapshots = details.get('snapshots', [])
- self.encrypted = details.get('encrypted')
+ self.encrypted = 'yes' if details.get('encrypted') else None
self.format_specific = details.get('format-specific')
else:
if cmd_output is not None: