From fa53de127e7ad9805d601fd24aa2c39f149db157 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Wed, 17 Jul 2024 09:19:36 -0700 Subject: [PATCH] Make imageutils a directory In anticipation of more image utility functionality incoming (i.e. format_inspector), this makes imageutils a directory so we can put that stuff underneath. The original imageutils.py file only has the QemuImgInfo object in it, so that is moved to imageutils/qemu.py and is imported in the module in the same place so this does not change the API. Change-Id: I3a58312d3bff69d9b06b712af466e6e09bf0b575 --- oslo_utils/imageutils/__init__.py | 1 + oslo_utils/{imageutils.py => imageutils/qemu.py} | 0 oslo_utils/tests/imageutils/__init__.py | 0 oslo_utils/tests/{test_imageutils.py => imageutils/test_qemu.py} | 0 4 files changed, 1 insertion(+) create mode 100644 oslo_utils/imageutils/__init__.py rename oslo_utils/{imageutils.py => imageutils/qemu.py} (100%) create mode 100644 oslo_utils/tests/imageutils/__init__.py rename oslo_utils/tests/{test_imageutils.py => imageutils/test_qemu.py} (100%) diff --git a/oslo_utils/imageutils/__init__.py b/oslo_utils/imageutils/__init__.py new file mode 100644 index 00000000..6a6ff198 --- /dev/null +++ b/oslo_utils/imageutils/__init__.py @@ -0,0 +1 @@ +from .qemu import QemuImgInfo diff --git a/oslo_utils/imageutils.py b/oslo_utils/imageutils/qemu.py similarity index 100% rename from oslo_utils/imageutils.py rename to oslo_utils/imageutils/qemu.py diff --git a/oslo_utils/tests/imageutils/__init__.py b/oslo_utils/tests/imageutils/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/oslo_utils/tests/test_imageutils.py b/oslo_utils/tests/imageutils/test_qemu.py similarity index 100% rename from oslo_utils/tests/test_imageutils.py rename to oslo_utils/tests/imageutils/test_qemu.py