-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
linode: support cache in Linode dynamic inventory #4179
linode: support cache in Linode dynamic inventory #4179
Conversation
cc @Charliekenney23 @InTheCloudDan @LBGarber @decentral1se @displague @rmcintosh |
This comment was marked as outdated.
This comment was marked as outdated.
a7c3c3a
to
9f855d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Here are a first few comments.
9f855d3
to
7c7a0b9
Compare
7c7a0b9
to
9e58b29
Compare
Looks good to me! If nobody complains, I'll merge it this weekend. |
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #4234 🤖 @patchback |
(cherry picked from commit f6e0693)
@wbh1 thanks for your contribution! |
SUMMARY
This PR adds support for caching results from the Linode dynamic inventory plugin.
Because the Linode API module uses non-serializable custom classes, I store the raw JSON response from the API in the cache and recreate the
Instance
objects when reading from cache.ISSUE TYPE
COMPONENT NAME
linode
ADDITIONAL INFORMATION
I've confirmed that the inventory works as expected both with cache disabled and with it enabled.