mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +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',
|
'--module-dirs',
|
||||||
dest='module_dirs',
|
dest='module_dirs',
|
||||||
default='',
|
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()
|
options, args = parser.parse_args()
|
||||||
|
|
||||||
opts = {}
|
opts = {}
|
||||||
|
|
||||||
opts['stats'] = options.stats
|
opts['stats'] = options.stats
|
||||||
opts['module_dirs'] - options.module_dirs
|
opts['module_dirs'] = options.module_dirs.split(',')
|
||||||
opts['fun'] = args[0]
|
opts['fun'] = args[0]
|
||||||
opts['arg'] = args[1:]
|
opts['arg'] = args[1:]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user