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:
Brian Coca 2016-02-01 16:55:40 -05:00
commit 8d4bc2003f
2 changed files with 9 additions and 4 deletions

View file

@ -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')