From 767517ac65221c14d99f3b6853dec956f915961e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 23 Feb 2012 23:57:26 -0500 Subject: [PATCH] Force forks to be an integer when read by command line --- bin/ansible | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible b/bin/ansible index 4224a6efc99..4254b0b7fbf 100755 --- a/bin/ansible +++ b/bin/ansible @@ -42,7 +42,7 @@ class Cli(object): help="path to hosts list", default=C.DEFAULT_HOST_LIST) parser.add_option("-L", "--library", dest="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) parser.add_option("-n", "--name", dest="module_name", help="module name to execute", default=C.DEFAULT_MODULE_NAME)