(action_api)
| 61 | |
| 62 | |
| 63 | def 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 | |
| 79 | def _is_valid_pack(pack): |
no test coverage detected