You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nautobot version (Docker tag too if applicable): 1.5.16
Python version: 3.8.13
Database platform, version: MySQL 8.0.29
Steps to Reproduce
Obtain the PK for a job that uses a MultiObjectVar input.
Send and API POST to /api/extras/jobs/{job_id}/run/
In the data, specify a UUID for an object that does not exist in the database
This can be reproduced on the API Documentation page for demo.nautobot.com using Job ID 6ecb9402-714e-43dc-8353-4a7da3d6845b ("Execute All Golden Configuration Jobs - Multiple Device")
The API call should fail with the informative message: DoesNotExist: "Failed to find requested objects for var device: ['00000000-0000-0000-0000-000000000000']"
Observed Behavior
The error below is returned due to a an unexpected exception. This error obscures the root cause and is uninformative.
{
"error": "unsupported operand type(s) for -: 'list' and 'list'",
"exception": "TypeError",
"nautobot_version": "1.5.7",
"python_version": "3.7.16"
}
The text was updated successfully, but these errors were encountered:
grelleum
added a commit
to grelleum/nautobot
that referenced
this issue
May 21, 2023
Environment
Steps to Reproduce
MultiObjectVar
input./api/extras/jobs/{job_id}/run/
This can be reproduced on the API Documentation page for demo.nautobot.com using Job ID
6ecb9402-714e-43dc-8353-4a7da3d6845b
("Execute All Golden Configuration Jobs - Multiple Device")Expected Behavior
The API call should fail with the informative message:
DoesNotExist: "Failed to find requested objects for var device: ['00000000-0000-0000-0000-000000000000']"
Observed Behavior
The error below is returned due to a an unexpected exception. This error obscures the root cause and is uninformative.
The text was updated successfully, but these errors were encountered: