Skip to content
Snippets Groups Projects
Verified Commit 6b84bc01 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

fix docstring indentation

parent 87a58ef4
No related branches found
No related tags found
No related merge requests found
Pipeline #84801 passed
......@@ -39,8 +39,8 @@ def playbook_launch_error(reason: str, status_code: int = status.HTTP_400_BAD_RE
"""Return a :class:`PlaybookLaunchResponse` for the erroneous start of a playbook execution.
:param str reason: The reason why a request has failed.
:param status status_code: The HTTP status code that should be associated with this request. Defaults to HTTP 400
"Bad request".
:param status status_code: The HTTP status code that should be associated with this request. Defaults to HTTP 400:
Bad request.
:return JSONResponse: A playbook launch response that's unsuccessful.
"""
return JSONResponse(content={"error": reason}, status_code=status_code)
......@@ -164,7 +164,8 @@ def run_playbook(
:param dict[str, Any] extra_vars: Any extra vars needed for the playbook to run.
:param dict[str, Any] | str inventory: The inventory that the playbook is executed against.
:param :class:`HttpUrl` callback: Callback URL where the playbook should send a status update when execution is
completed. This is used for workflow-orchestrator to continue with the next step in a workflow.
completed. This is used for workflow-orchestrator to continue with the next step
in a workflow.
:return: Result of playbook launch, this could either be successful or unsuccessful.
:rtype: :class:`fastapi.responses.JSONResponse`
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment