mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Force forks to be an integer when read by command line
This commit is contained in:
parent
7730341d24
commit
767517ac65
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Cli(object):
|
||||||
help="path to hosts list", default=C.DEFAULT_HOST_LIST)
|
help="path to hosts list", default=C.DEFAULT_HOST_LIST)
|
||||||
parser.add_option("-L", "--library", dest="module_path",
|
parser.add_option("-L", "--library", dest="module_path",
|
||||||
help="path to module library", default=C.DEFAULT_MODULE_PATH)
|
help="path to module library", default=C.DEFAULT_MODULE_PATH)
|
||||||
parser.add_option("-f", "--forks", dest="forks",
|
parser.add_option("-f", "--forks", dest="forks", type="int",
|
||||||
help="level of parallelism", default=C.DEFAULT_FORKS)
|
help="level of parallelism", default=C.DEFAULT_FORKS)
|
||||||
parser.add_option("-n", "--name", dest="module_name",
|
parser.add_option("-n", "--name", dest="module_name",
|
||||||
help="module name to execute", default=C.DEFAULT_MODULE_NAME)
|
help="module name to execute", default=C.DEFAULT_MODULE_NAME)
|
||||||
|
|
Loading…
Reference in a new issue