[bug] Nomad panics when attempting to scale a job by a negative value #7902
Labels
theme/api
HTTP API and SDK issues
theme/autoscaling
Issues related to supporting autoscaling
type/bug
Nomad version
Version:
Nomad v0.11.2-dev
Commit:
f5c84fca8e128be8ff609f3b6bfc0230a25d3adf
Operating system and Environment details
Reproduced on Mac and Linux amd64.
Issue
When attempting to scale a job task group by a negative value, the Nomad server panics.
Reproduction steps
nomad agent -dev
nomad run <jobfile>
curl --request POST --data @payload.json http://localhost:4646/v1/job/example/scale
Job file
API Payload
Nomad Logs
The text was updated successfully, but these errors were encountered: