Skip to content
Snippets Groups Projects
Commit eaeefbc4 authored by Simone Spinelli's avatar Simone Spinelli
Browse files

Add dry run and real base config deployment - not for real real we still miss dry_run=false

parent fc5aa43a
Branches
Tags
1 merge request!5Device workflows
......@@ -114,8 +114,9 @@ def provision_device_dry(
)
out = r.stdout.read()
out_splitted = out.splitlines()
return {"output": out_splitted}
#if r.rc != 0:
# raise ValueError("Ansible has failed")
return {"dry_run_output": out_splitted, "return_code": r.rc}
@inputstep("Confirm step", assignee ="CHANGES")
......@@ -156,7 +157,7 @@ def provision_device_real(
out = r.stdout.read()
out_splitted = out.splitlines()
return {"output": out_splitted}
return {"real_run_output": out_splitted, "return_code": r.rc}
@workflow(
"Create Device",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment