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

Method _restore_action

st2api/st2api/controllers/v1/actions.py:544–553  ·  view source on GitHub ↗
(self, action_db, pack_base_path, temp_sub_dir)

Source from the content-addressed store, hash-verified

542 self._trigger_dispatcher.dispatch(trigger=trigger, payload=payload)
543
544 def _restore_action(self, action_db, pack_base_path, temp_sub_dir):
545 restore_temp_action_files(
546 pack_base_path,
547 action_db["metadata_file"],
548 action_db["entry_point"],
549 temp_sub_dir,
550 )
551 action_db.id = None
552 Action.add_or_update(action_db)
553 remove_temp_action_files(temp_sub_dir)
554
555
556actions_controller = ActionsController()

Callers 1

cloneMethod · 0.95

Calls 3

remove_temp_action_filesFunction · 0.90
add_or_updateMethod · 0.45

Tested by

no test coverage detected