diff --git a/src/spaceone/plugin/service/plugin_service.py b/src/spaceone/plugin/service/plugin_service.py index e6cae42..e67d5c3 100644 --- a/src/spaceone/plugin/service/plugin_service.py +++ b/src/spaceone/plugin/service/plugin_service.py @@ -58,6 +58,7 @@ def get_plugin_metadata(self, params: dict): """ plugin_id = params['plugin_id'] domain_id = params['domain_id'] + options = params.get('options', {}) if params.get('upgrade_mode') == 'MANUAL' and params.get('version') is None: raise ERROR_REQUIRED_PARAMETER(key='version') @@ -65,7 +66,7 @@ def get_plugin_metadata(self, params: dict): params.update({'version': self._get_plugin_version(params)}) 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, {}) + init_response = self.plugin_mgr.init_plugin(plugin_endpoint_info.get('endpoint'), api_class, options) return init_response.get('metadata', {}) def _get_plugin_endpoint(self, params):