Skip to content

Commit

Permalink
fix(anta.cli)!: Remove confusing -i option in anta get from-ansible (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
titom73 authored Nov 22, 2023
1 parent 63a4136 commit f97fc1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion anta/cli/get/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def from_cvp(inventory_directory: str, cvp_ip: str, cvp_username: str, cvp_passw
@click.option("--ansible-group", "-g", help="Ansible group to filter", type=str, required=False, default="all")
@click.option(
"--ansible-inventory",
"-i",
default=None,
help="Path to your ansible inventory file to read",
type=click.Path(file_okay=True, dir_okay=False, exists=True, path_type=Path),
Expand Down
14 changes: 6 additions & 8 deletions docs/cli/inv-from-ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ Usage: anta get from-ansible [OPTIONS]
Build ANTA inventory from an ansible inventory YAML file

Options:
-g, --ansible-group TEXT Ansible group to filter
-i, --ansible-inventory FILE Path to your ansible inventory file to read
-o, --output FILE Path to save inventory file. If not
configured, use anta inventory file
--overwrite Confirm script can overwrite existing
inventory file [env var:
ANTA_GET_FROM_ANSIBLE_OVERWRITE]
--help Show this message and exit.
-g, --ansible-group TEXT Ansible group to filter
--ansible-inventory FILENAME
Path to your ansible inventory file to read
-o, --output FILENAME Path to save inventory file
-d, --inventory-directory PATH Directory to save inventory file
--help Show this message and exit.
```

The output is an inventory where the name of the container is added as a tag for each host:
Expand Down

0 comments on commit f97fc1f

Please sign in to comment.