From 2862eaef082027a315a8e12e5a8d88b6863609a7 Mon Sep 17 00:00:00 2001 From: Youngjun Date: Tue, 12 Mar 2024 14:52:36 +0900 Subject: [PATCH] refectory: fix comments - comments that did not match the parameter names have been corrected. - parameter information included in parameters but remaining in comments has been deleted. Change-Id: I6bbaaae697f1be560897c7d99234f1e23e710143 Signed-off-by: Youngjun --- glance/async_/flows/_internal_plugins/copy_image.py | 2 +- glance/async_/flows/_internal_plugins/web_download.py | 1 - glance/async_/flows/api_image_import.py | 2 -- glance/async_/flows/plugins/inject_image_metadata.py | 1 - glance/common/wsgi.py | 2 +- 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/glance/async_/flows/_internal_plugins/copy_image.py b/glance/async_/flows/_internal_plugins/copy_image.py index acd41b7c44..11d07b5783 100644 --- a/glance/async_/flows/_internal_plugins/copy_image.py +++ b/glance/async_/flows/_internal_plugins/copy_image.py @@ -52,7 +52,7 @@ class _CopyImage(task.Task): def _execute(self, action): """Create temp file into store and return path to it - :param image_id: Glance Image ID + :param action: Action wrapper """ # NOTE (abhishekk): If ``all_stores_must_succeed`` is set to True # and copying task fails then we keep data in staging area as it diff --git a/glance/async_/flows/_internal_plugins/web_download.py b/glance/async_/flows/_internal_plugins/web_download.py index e14e4431f0..ae4753b02e 100644 --- a/glance/async_/flows/_internal_plugins/web_download.py +++ b/glance/async_/flows/_internal_plugins/web_download.py @@ -40,7 +40,6 @@ class _WebDownload(base_download.BaseDownload): def execute(self): """Create temp file into store and return path to it - :param image_id: Glance Image ID """ # NOTE(jokke): We've decided to use staging area for this task as # a way to expect users to configure a local store for pre-import diff --git a/glance/async_/flows/api_image_import.py b/glance/async_/flows/api_image_import.py index ee72fbaeda..0d47815adf 100644 --- a/glance/async_/flows/api_image_import.py +++ b/glance/async_/flows/api_image_import.py @@ -714,7 +714,6 @@ class _VerifyImageState(task.Task): def execute(self): """Verify we have active image - :param image_id: Glance Image ID """ with self.action_wrapper as action: if action.image_status != 'active': @@ -773,7 +772,6 @@ class _CompleteTask(task.Task): def execute(self): """Finishing the task flow - :param image_id: Glance Image ID """ task = script_utils.get_task(self.task_repo, self.task_id) if task is not None: diff --git a/glance/async_/flows/plugins/inject_image_metadata.py b/glance/async_/flows/plugins/inject_image_metadata.py index 7b76b0834a..428b324186 100644 --- a/glance/async_/flows/plugins/inject_image_metadata.py +++ b/glance/async_/flows/plugins/inject_image_metadata.py @@ -66,7 +66,6 @@ class _InjectMetadataProperties(task.Task): def execute(self): """Inject custom metadata properties to image - :param image_id: Glance Image ID """ user_roles = self.context.roles ignore_user_roles = CONF.inject_metadata_properties.ignore_user_roles diff --git a/glance/common/wsgi.py b/glance/common/wsgi.py index aad8342ae0..21e42bbfa9 100644 --- a/glance/common/wsgi.py +++ b/glance/common/wsgi.py @@ -496,7 +496,7 @@ class BaseServer(metaclass=abc.ABCMeta): Apply configuration settings :param old_conf: Cached old configuration settings (if any) - :param has changed: callable to determine if a parameter has changed + :param has_changed: callable to determine if a parameter has changed """ eventlet.wsgi.MAX_HEADER_LINE = CONF.max_header_line self.client_socket_timeout = CONF.client_socket_timeout or None