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

Function get_runner_model

st2common/st2common/validators/api/action.py:63–76  ·  view source on GitHub ↗
(action_api)

Source from the content-addressed store, hash-verified

61
62
63def get_runner_model(action_api):
64 runner_db = None
65 # Check if runner exists.
66 try:
67 runner_db = get_runnertype_by_name(action_api.runner_type)
68 except StackStormDBObjectNotFoundError:
69 msg = (
70 "RunnerType %s is not found. If you are using old and deprecated runner name, you "
71 "need to switch to a new one. For more information, please see "
72 "https://docs.stackstorm.com/upgrade_notes.html#st2-v0-9"
73 % (action_api.runner_type)
74 )
75 raise ValueValidationException(msg)
76 return runner_db
77
78
79def _is_valid_pack(pack):

Callers 1

validate_actionFunction · 0.85

Calls 2

get_runnertype_by_nameFunction · 0.90

Tested by

no test coverage detected