mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
better fix for ansible-pull inventory handling
now it mirrors what it did in previous versions and properly uses inventory and limit options
This commit is contained in:
parent
d436c3c6ab
commit
8d4bc2003f
2 changed files with 9 additions and 4 deletions
|
@ -224,7 +224,7 @@ class CLI(object):
|
|||
|
||||
if inventory_opts:
|
||||
parser.add_option('-i', '--inventory-file', dest='inventory',
|
||||
help="specify inventory host path (default=%s) or comma separated host list" % C.DEFAULT_HOST_LIST,
|
||||
help="specify inventory host path (default=%s) or comma separated host list." % C.DEFAULT_HOST_LIST,
|
||||
default=C.DEFAULT_HOST_LIST, action="callback", callback=CLI.expand_tilde, type=str)
|
||||
parser.add_option('--list-hosts', dest='listhosts', action='store_true',
|
||||
help='outputs a list of matching hosts; does not execute anything else')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue