Skip to content

Commit

Permalink
Merge pull request #20 from jihyungSong/master
Browse files Browse the repository at this point in the history
chore: add logger for debug
  • Loading branch information
jihyungSong authored Jun 8, 2023
2 parents 2977beb + b1abfd3 commit 3feb55a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/spaceone/plugin/service/plugin_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3feb55a

Please sign in to comment.