Removed the premade actions because they were empty anyway

This commit is contained in:
2026-07-27 18:21:30 +01:00
parent d130722390
commit 61d5333ec1
2 changed files with 3 additions and 32 deletions
-30
View File
@@ -6,33 +6,3 @@ from playbook.action_registry import ActionRegistry
# Module wide registry with built in functions
registry: ActionRegistry = ActionRegistry("testrunner_registry")
@registry.register(name="directory_exists", version="stat1.0")
def directory_exists(ctx, name) -> StepLog:
log: StepLog = StepLog(
step_name=name,
status=Status.GOOD,
msg="source directory exists",
)
return log
@registry.register(name="copy_directory", version="cp1.0")
def copy_directory(ctx, name) -> StepLog:
log: StepLog = StepLog(
step_name=name,
status=Status.GOOD,
msg="directory was copied/movied/borged/rsynced",
)
return log
@registry.register(name="verify_copy", version="verify1.0")
def verify_copy(ctx, name) -> StepLog:
log: StepLog = StepLog(
step_name=name,
status=Status.GOOD,
msg="copied/movied/borged/rsynced exists and is valid",
)
return log
+3 -2
View File
@@ -14,6 +14,9 @@ from typing import List, Dict, Any, Tuple
# we can create a class for this I reckon
restic = ActionRegistry("restic_actions_reg")
def parse_output(line: str) -> List[Dict[str, Any]]:
errors = []
for line in line.split('\n'):
@@ -70,8 +73,6 @@ def run_restic_command(cmd: List[str]) -> Tuple[int, List[Dict[str, Any]]]:
returncode = process.wait()
return returncode, parsed_json
restic = ActionRegistry("restic_actions_reg")
@restic.register(name="check_restic_environment", version="")
def check_restic_environment(ctx, name: str = "") -> StepLog: