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

fix(anta.cli): Use configured anta inventory as output by default in get from-ansible #468

Closed
wants to merge 3 commits into from

Conversation

titom73
Copy link
Collaborator

@titom73 titom73 commented Nov 16, 2023

Description

Use configured anta inventory by default in anta get from-ansible command. Also the knob -i for ansible-inventory has been renamed -ai to avoid confusion with anta inventory.

❯ anta get from-ansible --ansible-inventory .personal/ansible.yml -g ATD_LEAFS
[14:22:50] INFO     Building inventory from ansible file .personal/ansible.yml              
           INFO     output anta inventory is: .personal/inventory.yml                       
           INFO        * adding entry for s1-leaf1                                          
           INFO        * adding entry for s1-leaf2                                          
           INFO        * adding entry for s1-leaf3                                          
           INFO        * adding entry for s1-leaf4                                          
           INFO     ANTA device inventory file has been created in .personal/inventory.yml  

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (tox -e testenv)

@titom73 titom73 marked this pull request as ready for review November 16, 2023 13:31
@titom73 titom73 requested review from mtache and gmuloc November 16, 2023 13:31
@titom73 titom73 added the Anta CLI All things around CLI label Nov 16, 2023
@titom73 titom73 closed this Nov 16, 2023
@titom73 titom73 deleted the fix/anta-ansible-cli branch June 10, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Anta CLI All things around CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant