Skip to content

Commit

Permalink
Limit defaults to fabric group name to select all fabric hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
dlobato committed Aug 7, 2024
1 parent 4217aa4 commit 5e0fa79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyavd_cli/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ def main():
parser.add_argument(
"-l",
"--limit",
default="all,!cvp",
default=None,
type=str,
help=(
"Limit filter for inventory. See https://docs.ansible.com/ansible/latest/inventory_guide/intro_patterns.html"
"#patterns-and-ad-hoc-commands."
"#patterns-and-ad-hoc-commands. If not set it will default to fabric-group-name"
),
)
parser.add_argument("-m", "--max-workers", default=os.cpu_count(), type=int, help="Maximum number of parallel workers.")
Expand Down Expand Up @@ -258,7 +258,7 @@ def main():
max_workers = args.max_workers
strict = args.strict
fabric_group_name = args.fabric_group_name
limit = args.limit
limit = args.limit or args.fabric_group_name
vault_ids = args.vault_id

logger.debug("pyavd version: %s", pyavd_version)
Expand Down

0 comments on commit 5e0fa79

Please sign in to comment.