Fix unrecognized --limit option
Kolla-ansible does not have as its allowed parameters ansible's limit. Change-Id: I86821fe39e6f0f61e513a0677bf177234c203103 Closes-Bug: #1693801
This commit is contained in:
parent
62972a6c8e
commit
973145f88f
@ -42,6 +42,7 @@ Options:
|
||||
--tags, -t <tags> Only run plays and tasks tagged with these values
|
||||
--extra, -e <ansible variables> Set additional variables as key=value or YAML/JSON passed to ansible-playbook
|
||||
--passwords <passwords_path> Specify path to the passwords file
|
||||
--limit <host> Specify host to run plays
|
||||
--verbose, -v Increase verbosity of ansible-playbook
|
||||
|
||||
Commands:
|
||||
@ -74,6 +75,7 @@ cat <<EOF
|
||||
--tags -t
|
||||
--extra -e
|
||||
--passwords
|
||||
--limit
|
||||
--verbose -v
|
||||
prechecks
|
||||
check
|
||||
@ -94,7 +96,7 @@ EOF
|
||||
}
|
||||
|
||||
SHORT_OPTS="hi:p:t:k:e:v"
|
||||
LONG_OPTS="help,inventory:,playbook:,tags:,key:,extra:,verbose,configdir:,passwords:,yes-i-really-really-mean-it,include-images"
|
||||
LONG_OPTS="help,inventory:,playbook:,tags:,key:,extra:,verbose,configdir:,passwords:,limit:,yes-i-really-really-mean-it,include-images"
|
||||
ARGS=$(getopt -o "${SHORT_OPTS}" -l "${LONG_OPTS}" --name "$0" -- "$@") || { usage >&2; exit 2; }
|
||||
|
||||
eval set -- "$ARGS"
|
||||
@ -165,6 +167,11 @@ while [ "$#" -gt 0 ]; do
|
||||
PASSWORDS_FILE="$2"
|
||||
shift 2
|
||||
;;
|
||||
(--limit)
|
||||
EXTRA_OPTS="$EXTRA_OPTS --limit $2"
|
||||
shift 2
|
||||
;;
|
||||
|
||||
(--help|-h)
|
||||
usage
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user