This sync pulls the latest Oslo imageutils code over to cinder
to fix QemuImgInfo parsing needed by NFS drivers.
->
b455fac Enable decimal value input in imageutils.QemuImgInfo
--> cinder/openstack/common/imageutils.py
Oslo version:
->
0e98afd Re-raise exception of unloadable library
-> Date: Tue Mar 4 17:26:40 2014 +0100
Change-Id: I770b0f534c6949c2ff6995a03923a21ed26e04da
Closes-Bug:
1285764
BACKING_FILE_RE = re.compile((r"^(.*?)\s*\(actual\s+path\s*:"
r"\s+(.*?)\)\s*$"), re.I)
TOP_LEVEL_RE = re.compile(r"^([\w\d\s\_\-]+):(.*)$")
- SIZE_RE = re.compile(r"(\d+)(\w+)?(\s*\(\s*(\d+)\s+bytes\s*\))?", re.I)
+ SIZE_RE = re.compile(r"(\d*\.?\d+)(\w+)?(\s*\(\s*(\d+)\s+bytes\s*\))?",
+ re.I)
def __init__(self, cmd_output=None):
details = self._parse(cmd_output or '')