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
When running the plugin module against an existing firewall policy that already exists the task will error.
STEPS TO REPRODUCE
Create a firewall policy and then have the plugin module run against the same policy.
Note: due to #245 if the firewall policy is created by the module first time it will error as explained in the linked PR. If you run it again you'll get the error reported in this issue.
File "/usr/local/lib/python3.8/dist-packages/pynautobot/core/response.py", line 344, in serialize
current_val = [v.id if isinstance(v, Record) else v for v in current_val]
File "/usr/local/lib/python3.8/dist-packages/pynautobot/core/response.py", line 344, in <listcomp>
current_val = [v.id if isinstance(v, Record) else v for v in current_val]
File "/usr/local/lib/python3.8/dist-packages/pynautobot/core/response.py", line 190, in __getattr__
raise AttributeError('object has no attribute "{}"'.format(k))
AttributeError: object has no attribute "id"
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
SOFTWARE VERSIONS
pynautobot
1.5.0
Ansible:
2.12.2
Nautobot:
1.5.0
Collection:
4.5.0
SUMMARY
When running the plugin module against an existing firewall policy that already exists the task will error.
STEPS TO REPRODUCE
Create a firewall policy and then have the plugin module run against the same policy.
Note: due to #245 if the firewall policy is created by the module first time it will error as explained in the linked PR. If you run it again you'll get the error reported in this issue.
EXPECTED RESULTS
The task results in no changes and is a success.
ACTUAL RESULTS
The task returns an error
The text was updated successfully, but these errors were encountered: