mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
repair issues in the __Load_functoions method
This commit is contained in:
parent
75b992f243
commit
3a4f2f7ce7
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
|||
'''
|
||||
Routines to set up a minion
|
||||
'''
|
||||
# Import python libs
|
||||
import os
|
||||
import distutils.sysconfig
|
||||
import importlib
|
||||
|
||||
# Import zeromq libs
|
||||
import zmq
|
||||
# Import salt libs
|
||||
|
@ -52,8 +57,8 @@ class Minion(object):
|
|||
for attr in dir(module):
|
||||
if attr.startswith('_'):
|
||||
continue
|
||||
if callable(getattr(imp, attr)):
|
||||
functions[mod + '.' + attr] = getattr(imp, attr)
|
||||
if callable(getattr(module, attr)):
|
||||
functions[mod + '.' + attr] = getattr(module, attr)
|
||||
print functions
|
||||
return functions
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue