Skip to content

Commit

Permalink
[#48] Fix invalid payload options in run job API
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Feb 20, 2025
1 parent a12c68a commit 263a912
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/api/v1/v1_rundeck/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,10 @@ def post(self, request, version, job_id):
)
response = requests.post(
f"{settings.RUNDECK_API_URL}/job/{job_id}/run",
{
"year_month": serializer.validated_data["year_month"]
json={
"options": {
"year_month": serializer.validated_data["year_month"]
}
},
headers={
"X-Rundeck-Auth-Token": settings.RUNDECK_API_TOKEN
Expand Down

0 comments on commit 263a912

Please # to comment.