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

Make new inventory.py pass pylint #591

Closed
kylerisse opened this issue Mar 13, 2023 · 5 comments
Closed

Make new inventory.py pass pylint #591

kylerisse opened this issue Mar 13, 2023 · 5 comments
Assignees

Comments

@kylerisse
Copy link
Member

Description

In order to quickly iterate on the NixOS migration, @sarcasticadmin added

# pylint: skip-file
. Now that we're between shows again, lets clean it up.

Acceptance Criteria

  • # pylint: skip-file removed from /facts/inventory.py
  • /facts/inventory.py passes pylint
@kylerisse kylerisse self-assigned this Mar 20, 2023
@kylerisse
Copy link
Member Author

@owendelong I see this file /ansible/LibInventory.pm in the repo. It looks unused and commit suggests it was for KEA. Since we're configuring Kea with Nix, I don't believe we need this file. Can you please confirm? Only reason I ask is that @sarcasticadmin and I are going to be 1. removing this /ansible directory soon and 2. modifying the data structure that inventory.py produces. I want to make sure I don't break anything you have integrated or planned. Thank you!

@owendelong
Copy link
Collaborator

owendelong commented Sep 21, 2023 via email

@kylerisse
Copy link
Member Author

kylerisse commented Sep 22, 2023

Cool, yea all the Nix KEA stuff is strait forward enough. This commit made it look like you had intended to do Kea stuff with perl prior to the Nix effort, only reason I asked. I had already grepped around. We’ll add human readable output as part of the new work. We’ll get it all squared away next week. Thanks Owen!

@nixinator
Copy link
Collaborator

not sure if this relevant, but nix can output to JSON.

NixOS/nix@8abb80a

might be interest to capture this data, and do something with it, like comparing a machine against a baseline or a single source of truth.

@owendelong
Copy link
Collaborator

This topic has wandered a bit, but IIRC, inventory.py is now deprecated and the core issues discussed have been resolved. If anyone believes this is wrong, please re-open this issue.

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

No branches or pull requests

3 participants