oslo.utils/oslo_utils
Mark Mielke 5204dfcd6c Support "qemu-img info" virtual size in QEMU 4.1 and later
QEMU 4.0 and earlier have output like:

    virtual size: 1.5M (1572864 bytes)

QEMU 4.1 and later have output like:

    virtual size: 1.5 MiB (1572864 bytes)

Adjust the regular expression to allow for optional whitespace
between the magnitude and the unit.

Adjust the unit parsing to support the expanded "MiB" form.

Change-Id: I1f316d6982c0def3296af4835484ad2d81a87fd4
Closes-Bug: 1844050
2019-09-20 16:56:47 -04:00
..
locale Imported Translations from Zanata 2018-03-01 06:07:18 +00:00
tests Support "qemu-img info" virtual size in QEMU 4.1 and later 2019-09-20 16:56:47 -04:00
__init__.py Move files out of the namespace package 2015-01-06 17:07:36 -05:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:34:11 +08:00
dictutils.py Create dictutils and add 'flatten_dict_to_keypairs' 2016-11-01 23:35:57 +08:00
encodeutils.py Fix exception raise at rpdb session 2018-09-07 10:15:51 +03:00
eventletutils.py eventletutils: Optimise EventletEvent.clear() 2019-01-25 14:56:57 +13:00
excutils.py Remove log translations 2017-03-28 13:53:16 +08:00
fileutils.py improve docstring for last_bytes() 2018-01-02 08:50:18 -05:00
fixture.py Fix docstring formatting nit in uuidsentinel 2018-08-28 15:25:18 +00:00
fnmatch.py Merge "Add missing doc index for imageutils and fnmatch" 2015-12-17 18:02:48 +00:00
imageutils.py Support "qemu-img info" virtual size in QEMU 4.1 and later 2019-09-20 16:56:47 -04:00
importutils.py Make method import_versioned_module work 2016-10-12 16:51:52 +08:00
netutils.py Add method to escape ipv6 ip addresses 2017-08-18 12:50:08 +01:00
reflection.py Update hacking version 2019-02-13 14:28:34 +08:00
secretutils.py Fix exception with secretutils 2018-05-24 18:55:24 +08:00
specs_matcher.py Merge "Clean imports in code" 2018-02-09 12:55:21 +00:00
strutils.py Merge "Mask encryption_key_id" 2019-03-27 16:19:40 +00:00
timeutils.py Don't use monotonic on Python >=3.3 2018-12-05 16:28:41 +13:00
units.py Write document for each unit of oslo_utils.utils 2015-10-15 16:14:14 +02:00
uuidutils.py Add toggle 'dashed' to 'generate_uuid' function 2016-12-06 02:38:08 -05:00
versionutils.py Prevent deprecation error messages from pkg_resources 2017-07-25 09:08:33 -07:00