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

Copy interfaces before processing in extractor #556

Merged
merged 2 commits into from
Sep 22, 2021

Conversation

nahun
Copy link
Contributor

@nahun nahun commented Jun 28, 2021

Fixes #535.

The interfaces extractor modifies the inventory as it processes the tags. Copy the interfaces list first instead.

@nahun nahun marked this pull request as ready for review June 28, 2021 19:26
@TWitzenrath
Copy link
Contributor

works perfectly, cant wait to see this merged 😻

@philfry
Copy link

philfry commented Sep 21, 2021

I'd really like to see this merged. We have lots of machines with tags on their interfaces in netbox and each ansible run takes ages without a cache.
This PR resolves this issue for me.

@ryanmerolle
Copy link
Contributor

Hello @philfry I asked @nahun to fetch upstream for the latest updates we added to the repo for 3.1.2. After the new CI completes, I am assuming it will complete successfully, can you please test for your issue?

You can install his PR by:

ansible-galaxy collection install -f git+https://github.com/nahun/ansible_modules.git,fix_535

Assuming all goes well, we can get it released today or tomorrow.

@ryanmerolle ryanmerolle added this to the Next Release milestone Sep 21, 2021
@philfry
Copy link

philfry commented Sep 21, 2021

Hi @ryanmerolle, thanks! I'll test it asap tomorrow :)

@philfry
Copy link

philfry commented Sep 22, 2021

Hi,
I tested it successfully, works like a charm.
👍

Copy link
Contributor

@ryanmerolle ryanmerolle left a comment

Choose a reason for hiding this comment

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

LGTM

@rodvand rodvand merged commit f9f1ee9 into netbox-community:devel Sep 22, 2021
@philfry
Copy link

philfry commented Oct 18, 2021

Hi, is there any ETA for a new release including this fix?
Thanks!

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.

nb_inventory fails to cache network interfaces if tags are set for any interface of that host
5 participants