Takashi Kajinami 75c4abd909 QemuImgInfo: Skip deprecation warning when output is not passed
Change 73eb0673f627aad382e08a816191b637af436465 deprecated usage of
the human format and introduced a deprecatipon warning message which
is shown unless format is explicitly set to 'json'.

To avoid the deprecation warning, all usage of QemuImgInfo requires
explicit definition of format='json'. This means that we should add
the format parameter to all existing usage of QemuImgInfo even if
output is blank as is described in the following example.
 QemuImgInfo()
 QemuImgInfo(output=None)

However later we should revert these implementations again when we
deprecated or remove the format parameter. These steps are very
redundant.

This change suppresses the warning message when output is blank so that
we can avoid deprecation warnings without redundant update and revert.

Change-Id: If1ec42dae757fa3d74c740a52c346701ea19f1c9
2021-07-06 22:11:55 +09:00
2020-09-09 13:38:50 +02:00
2019-04-19 19:27:54 +00:00
2018-07-04 08:28:15 +07:00
2021-03-18 11:31:53 +00:00
2019-02-13 14:28:34 +08:00
2020-02-10 18:35:07 +01:00
2020-09-09 13:38:50 +02:00
2021-04-16 10:44:44 +00:00

Team and repository tags

image

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.

Description
OpenStack library utils
Readme 8 MiB
Languages
Python 100%