Skip to content
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

nb_lookup.py: Add example for lookup with variable #1332

Merged

Conversation

martbhell
Copy link
Contributor

@martbhell martbhell commented Oct 3, 2024

Related Issue

New Behavior

...

Contrast to Current Behavior

...

Discussion: Benefits and Drawbacks

...

Changes to the Documentation

Haven't seen this "name" ~variable syntax before.
To speed up API lookups it's nice to use the filters rather than filtering with jinja.

...

Proposed Release Note Entry

...

Double Check

  • I have read the comments and followed the CONTRIBUTING.md.
  • I have explained my PR according to the information in the comments or in a linked issue.
  • My PR targets the devel branch.

sc68cal
sc68cal previously approved these changes Oct 9, 2024
@sc68cal
Copy link
Contributor

sc68cal commented Oct 9, 2024

I believe the practice is to put changelog entries in the fragments directory.

3.20.1:
changes:
minor_changes:
- Add example for using ansible variables in lookup (https://github.com/netbox-community/ansible_modules/pull/1332)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be created as a file in the fragments directory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I have added a fragment. Hope it looks better now :)

@martbhell martbhell force-pushed the nb_lookup_with_variable_example branch from 8afee20 to fefd4da Compare October 10, 2024 10:04
Keeps the lookup files of v3.5 and v4.1 identical.
@sc68cal
Copy link
Contributor

sc68cal commented Oct 11, 2024

lgtm, waiting for other maintainers to weigh in

@sc68cal sc68cal merged commit 33f3bc0 into netbox-community:devel Oct 15, 2024
49 checks passed
@martbhell martbhell deleted the nb_lookup_with_variable_example branch November 9, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants