-
Notifications
You must be signed in to change notification settings - Fork 103
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 criteria to tag. #209
Comments
Hi @pavedian, Can you copy and paste the code you're using to add an ip to an existing tag? That will help us answer the question easier/quicker. Thanks! |
I've attached the script. Thank you for taking the time to respond! |
You're overwriting the criteria of the tag and then adding the range criterion to it (which you also did earlier in the script): old_tag.search_criteria = criteria #overwrites original criteria
old_tag.search_criteria.criteria << range #adds criterion to criteria (again) If you only did the second part it should work as expected. |
yes! you are correct and it worked. thanks for that! |
I agree with @gschneider-r7 @pavedian,
If you fix that line, and do something to the effect of:
That should do what you're looking to do. Because what looks to be happening is you're setting Give that a shot, and let us know how it goes. |
Awesome, glad to hear it worked @pavedian -- going to go ahead and close the issue now. Thanks again. |
I've noticed when attempting to open an existing tag and adding another IP_Range it just overwrite the existing one.
Is there a clear way to add the same crtieria again instead of overwriting? I may be doing something wrong but I noticed when I attempt to open an existing tag the data is just overwritten.
The text was updated successfully, but these errors were encountered: