From 1ed0eeb110c0c65506789bb2d9f3911ed2dce6bc Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Fri, 22 Apr 2011 23:20:38 -0600 Subject: [PATCH] fix module_dirs loading for the salt call cli --- salt/cli/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py index 212c4e25d4..f14c63e297 100644 --- a/salt/cli/__init__.py +++ b/salt/cli/__init__.py @@ -393,14 +393,15 @@ class SaltCall(object): '--module-dirs', dest='module_dirs', default='', - help='Specify an additional directory to pull modules from') + help='Specify an additional directories to pull modules from,'\ + + ' multiple directories can be delimited by commas') options, args = parser.parse_args() opts = {} opts['stats'] = options.stats - opts['module_dirs'] - options.module_dirs + opts['module_dirs'] = options.module_dirs.split(',') opts['fun'] = args[0] opts['arg'] = args[1:]