Skip to content

Conversation

@kkthxbye-code
Copy link
Contributor

Fixes: #11459

Issue here was two-fold I believe. First issue is that primary_ip is always None when evaluating the conditions as computed properties are not serialized when queuing webhooks.

The other issue is that comparing "" with None is False. Allowing conditions to contain null/None allows to compare against None instead of empty string which was not functional.

- Update docs to reflect this
- Change docs example from primary_ip to primary_ip4 as computed properties are not serialized when queuing webhooks
@jeremystretch jeremystretch merged commit df499ea into netbox-community:develop Feb 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webhook condition for having a primary IP doesn't appear to be working

2 participants