Simple fixes for the salt-call docs sequence

This commit is contained in:
Thomas S Hatch 2011-04-23 15:52:56 -06:00
parent 0df3b8ab8a
commit 29d0356e49
2 changed files with 2 additions and 3 deletions

View File

@ -415,7 +415,7 @@ class SaltCall(object):
opts['arg'] = args[1:]
else:
opts['fun'] = ''
opts['args'] = []
opts['arg'] = []
return opts

View File

@ -33,8 +33,7 @@ class Caller(object):
'''
Pick up the documentation for all of the modules and print it out.
'''
funcs = loader.minion_mods(self.opts)
ret = funcs['sys.doc'](*self.opts['arg'])
ret = self.loader.call('sys.doc', self.opts['arg'])
docs = {}
for host in ret:
for fun in ret[host]: