Merge "Fix the bug of can't get the desired image info"

This commit is contained in:
Jenkins 2015-12-02 04:39:27 +00:00 committed by Gerrit Code Review
commit 7933b7e5e6
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class QemuImgInfo(object):
real_details = backing_match.group(2).strip()
elif root_cmd in ['virtual_size', 'cluster_size', 'disk_size']:
# Replace it with the byte amount (if we can convert it)
if root_details == 'None':
if root_details in ('None', 'unavailable'):
real_details = 0
else:
real_details = self._extract_bytes(root_details)