Merge "Add missing doc index for imageutils and fnmatch"
This commit is contained in:
commit
36de45dd52
@ -23,6 +23,8 @@ API Documentation
|
||||
api/excutils
|
||||
api/fileutils
|
||||
api/fixture
|
||||
api/fnmatch
|
||||
api/imageutils
|
||||
api/importutils
|
||||
api/netutils
|
||||
api/reflection
|
||||
|
@ -15,6 +15,8 @@
|
||||
Standard library fnmatch in Python versions <= 2.7.9 has thread safe
|
||||
issue, this module is created for such case. see:
|
||||
https://bugs.python.org/issue23191
|
||||
|
||||
.. versionadded:: 3.3
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
"""
|
||||
Helper methods to deal with images.
|
||||
|
||||
.. versionadded:: 3.1
|
||||
"""
|
||||
|
||||
import re
|
||||
@ -26,6 +28,12 @@ from oslo_utils import strutils
|
||||
|
||||
|
||||
class QemuImgInfo(object):
|
||||
"""Parse Qemu image information from command `qemu-img info`'s output.
|
||||
|
||||
The instance of :class:`QemuImgInfo` has properties: `image`,
|
||||
`backing_file`, `file_format`, `virtual_size`, `cluster_size`,
|
||||
`disk_size`, `snapshots` and `encrypted`.
|
||||
"""
|
||||
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\_\-]+):(.*)$")
|
||||
|
Loading…
Reference in New Issue
Block a user