From b5ab2311aeb2a9d0115878e26e8d01db53c1f888 Mon Sep 17 00:00:00 2001 From: Masahito Muroi Date: Tue, 18 Feb 2025 16:49:06 +0900 Subject: [PATCH] Fix glance_download_properties config section name in the doc The `glance_download_properties` section name is correct config section name, but the glance admin doc and generated glance-image-import.conf.sample file show wrong section name, `glance_download_opts`. This commit updates the glance admin doc and generated glance-image-import.conf.sample to show the correct section name. Closes-Bug: #2101854 Change-Id: Icf2a6ffbe3cd4b76431789c6249660e6e395d16c --- doc/source/admin/interoperable-image-import.rst | 3 ++- glance/opts.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/admin/interoperable-image-import.rst b/doc/source/admin/interoperable-image-import.rst index 5a17b2c417..f774f63bbd 100644 --- a/doc/source/admin/interoperable-image-import.rst +++ b/doc/source/admin/interoperable-image-import.rst @@ -278,7 +278,8 @@ Depending your needs on image properties you may configure addional properties to be copied from the remote image to the local image. You can do this by configuring options in the -``[glance_download_opts]`` section of the **glance-image-import.conf** file. +``[glance_download_properties]`` section of the **glance-image-import.conf** +file. ``extra_properties`` options is a list of properties that should be copied from the remote image. The properties listed should be read as properties that diff --git a/glance/opts.py b/glance/opts.py index dc736f8ab7..af0a9da143 100644 --- a/glance/opts.py +++ b/glance/opts.py @@ -85,7 +85,7 @@ _image_import_opts = [ glance.async_.flows.api_image_import.api_import_opts), ('import_filtering_opts', glance.async_.flows._internal_plugins.import_filtering_opts), - ('glance_download_opts', + ('glance_download_properties', glance.async_.flows.api_image_import.glance_download_opts) ]