From b1abfd365076ca03680d2c2650ae0bcdbd1eac6c Mon Sep 17 00:00:00 2001 From: jiyungSong Date: Thu, 8 Jun 2023 22:00:09 +0900 Subject: [PATCH] chore: add logger for debug --- src/spaceone/plugin/service/plugin_service.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/spaceone/plugin/service/plugin_service.py b/src/spaceone/plugin/service/plugin_service.py index bae8be7..519f11f 100644 --- a/src/spaceone/plugin/service/plugin_service.py +++ b/src/spaceone/plugin/service/plugin_service.py @@ -30,12 +30,12 @@ def get_plugin_endpoint(self, params: dict): Args: params(dict) { - 'plugin_id': 'str', - 'version': 'str', - 'labels': 'dict', - 'upgrade_mode': 'str', - 'domain_id': 'str' - } + 'plugin_id': 'str', + 'version': 'str', + 'labels': 'dict', + 'upgrade_mode': 'str', + 'domain_id': 'str' + } """ params.update({'version': self._get_plugin_version(params)}) return self._get_plugin_endpoint(params) @@ -200,7 +200,10 @@ def _select_endpoint(self, plugin_ref, updated_version=None): endpoint_info = {'endpoint': endpoint} - if updated_version: + if updated_version and installed_plugin.version != updated_version: + _LOGGER.debug(f'[_select_endpoint] version: {installed_plugin.version} | ' + f'updated_version: {updated_version}') + endpoint_info['updated_version'] = updated_version return endpoint_info