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

Silent exits when providing invalid inventory or catalog files #986

Closed
carl-baillargeon opened this issue Dec 24, 2024 · 0 comments · Fixed by #1000
Closed

Silent exits when providing invalid inventory or catalog files #986

carl-baillargeon opened this issue Dec 24, 2024 · 0 comments · Fixed by #1000
Assignees
Labels
bug Something isn't working
Milestone

Comments

@carl-baillargeon
Copy link
Contributor

When providing an invalid inventory or catalog file in ANTA CLI, the program exits silently without any error messages or exceptions.

This can be reproduced with:

  1. An invalid inventory file:
anta_inventory:
  - host: 172.20.20.101
    name: DC1-SPINE1
    tags: ["SPINE", "DC1"]
  1. Or an invalid catalog file:
- anta.tests.aaa:
  - VerifyTacacsSourceIntf:
      intf: Management0
      vrf: default
      filters:
        tags: ["BL"]

Suggested fix is to improve exception handling in:

@carl-baillargeon carl-baillargeon added the bug Something isn't working label Dec 24, 2024
@gmuloc gmuloc self-assigned this Jan 8, 2025
@gmuloc gmuloc added this to the v1.3.0 milestone Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants