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
The device gets created and the action has a status of 'succeeded'. This is expected.
When i execute the same action again, by clicking 'Rerun', i get the following result:
{
"raw": {},
"status": 404
}
The status of the action is also 'succeeded'. Is this the expected behavior? I would assume that the status of the action should be 'failed'.
The reason for my assumption is, I have a task which creates devices in Netbox, and the next task should create the interfaces for the particular device.
The 'post_device_to_netbox:' task only publishes the 'device_id' variable when the device didn't exist in Netbox. In case the devicce already exists, we get a 404 response so '- device_id: <% result().result.raw.id %>' does not work. Here we get this error:
"YaqlEvaluationException: Unable to resolve key 'id' in expression '<% result().result.raw.id %>' from context.",
In this case it would be helpful when the 'post_device_to_netbox:' task failed.
What are your thoughts on this?
Thanks
Remo
The text was updated successfully, but these errors were encountered:
Hi
I've tested the netbox.post.dcim.devices action to create a new device in Netbox. If the device doesn't exists, i get the following result:
The device gets created and the action has a status of 'succeeded'. This is expected.
When i execute the same action again, by clicking 'Rerun', i get the following result:
The status of the action is also 'succeeded'. Is this the expected behavior? I would assume that the status of the action should be 'failed'.
The reason for my assumption is, I have a task which creates devices in Netbox, and the next task should create the interfaces for the particular device.
The 'post_device_to_netbox:' task only publishes the 'device_id' variable when the device didn't exist in Netbox. In case the devicce already exists, we get a 404 response so '- device_id: <% result().result.raw.id %>' does not work. Here we get this error:
In this case it would be helpful when the 'post_device_to_netbox:' task failed.
What are your thoughts on this?
Thanks
Remo
The text was updated successfully, but these errors were encountered: