Skip to content

Commit

Permalink
make mypy happy again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Torkashvand committed Nov 14, 2024
1 parent c66829c commit 8587a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lso/routes/playbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def _inventory_validator(inventory: dict[str, Any] | str) -> dict[str, Any] | st
:raises HTTPException: If parsing fails or the format is incorrect.
"""
if not ansible_runner.utils.isinventory(inventory):
error_messages = "Invalid inventory provided. Should be a string, or JSON object."
raise HTTPException(status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, detail=error_messages)
detail = "Invalid inventory provided. Should be a string, or JSON object."
raise HTTPException(status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, detail=detail)

Check warning on line 47 in lso/routes/playbook.py

View check run for this annotation

Codecov / codecov/patch

lso/routes/playbook.py#L46-L47

Added lines #L46 - L47 were not covered by tests

loader = DataLoader()
output = StringIO()
Expand Down

0 comments on commit 8587a2b

Please sign in to comment.