Skip to content

Commit

Permalink
fix: update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyungSong committed Jun 2, 2023
1 parent 4cd8400 commit 138c942
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/spaceone/plugin/api/v1/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def get_plugin_metadata(self, request, context):

with self.locator.get_service('PluginService', metadata) as plugin_svc:
metadata = plugin_svc.get_plugin_metadata(params)
_LOGGER.debug(f'[get_plugin_metadata] {metadata}')
return self.locator.get_info('PluginMetadata', metadata)

def notify_failure(self, request, context):
Expand Down
1 change: 0 additions & 1 deletion src/spaceone/plugin/info/plugin_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ def PluginMetadata(metadata):
info = {
'metadata': change_struct_type(metadata)
}
_LOGGER.debug(f'[PluginMetadata] {info}')
return plugin_pb2.PluginMetadata(**info)
3 changes: 1 addition & 2 deletions src/spaceone/plugin/service/plugin_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def get_plugin_metadata(self, params: dict):
plugin_endpoint_info = self._get_plugin_endpoint(params)
api_class = self._get_plugin_api_class(plugin_id, domain_id)
init_response = self.plugin_mgr.init_plugin(plugin_endpoint_info.get('endpoint'), api_class, {}, domain_id)
_LOGGER.debug(f'[get_plugin_metadata] init_response: {init_response}')
return {'metadata': init_response.get('metadata', {})}
return init_response.get('metadata', {})

def _get_plugin_endpoint(self, params):
plugin_id = params['plugin_id']
Expand Down

0 comments on commit 138c942

Please sign in to comment.