-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding tags on a record optionally shouldn't remove existing tags #354
Comments
I think we may be looking at needing to have to convert the modules over to a resource model style module with this. So that we can give the options on the modules to support declarative models (the way it is today) and the other idea of supporting of merging data together, which would be taking what is there already, and adding to it rather than just making it appear as declared. |
Thanks @jvanderaa. So it feels like in the near term, the only solution here is to make a separate direct API call to handle tags, without using the actual Ansible module? |
And, for the long term resolution - sounds reasonable. |
It would be a 2 or 3 steps. Task 1: Grab the current tags that the object has (when it has already been created - yep, this isn't ideal) |
It's really a place at which point that tags and Ansible have a few different ideas. |
ISSUE TYPE
SOFTWARE VERSIONS
pynautobot
2.2.0
Ansible:
2.16.0
Nautobot:
2.2.4
Collection:
5.2.1
SUMMARY
Adding tags on a record optionally shouldn't remove existing tags
STEPS TO REPRODUCE
EXPECTED RESULTS
I would expect to optionally be able to specify whether tags should be overwritten or additive.
ACTUAL RESULTS
Other useful tags unrelated to this Ansible play were removed:
The text was updated successfully, but these errors were encountered: