mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix up syntax in the minion
This commit is contained in:
parent
12b029df82
commit
b0d0c9b67c
1 changed files with 1 additions and 5 deletions
|
@ -1,9 +1,6 @@
|
|||
'''
|
||||
Routines to set up a minion
|
||||
'''
|
||||
# Import python libs
|
||||
import os
|
||||
import distutils.sysconfig
|
||||
# Import zeromq libs
|
||||
import zmq
|
||||
# Import salt libs
|
||||
|
@ -40,7 +37,6 @@ class Minion(object):
|
|||
# This is going to need some work to clean it up and expand
|
||||
# functionality, right now it just loads up all callable objects in the
|
||||
# modules package
|
||||
mods = {}
|
||||
functions = {}
|
||||
for mod in dir(salt.modules):
|
||||
if not mod.startswith('_'):
|
||||
|
@ -48,7 +44,7 @@ class Minion(object):
|
|||
for attr in dir(module):
|
||||
if not attr.startswith('_'):
|
||||
if callable(getattr(module, attr)):
|
||||
functions{mod + '.' + attr: getattr(module, attr)}
|
||||
functions[mod + '.' + attr] = getattr(module, attr)
|
||||
print functions
|
||||
return functions
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue