mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
fix module_dirs loading for the salt call cli
This commit is contained in:
parent
a208ab9ad5
commit
1ed0eeb110
@ -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:]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user