MCPcopy Create free account
hub / github.com/StackStorm/st2 / get_plugin_instance

Function get_plugin_instance

st2common/st2common/util/loader.py:222–229  ·  view source on GitHub ↗

Return class instance for the provided plugin name and namespace.

(namespace, name, invoke_on_load=True)

Source from the content-addressed store, hash-verified

220
221
222def get_plugin_instance(namespace, name, invoke_on_load=True):
223 """Return class instance for the provided plugin name and namespace."""
224 from stevedore.driver import DriverManager
225
226 manager = DriverManager(
227 namespace=namespace, name=name, invoke_on_load=invoke_on_load
228 )
229 return manager.driver

Callers 2

get_runner_moduleFunction · 0.90
metrics_initializeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected