mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Alter sys.reload_functions to also refresh the facter data
This commit is contained in:
parent
d3dd180d8a
commit
ec45409099
@ -199,9 +199,11 @@ class Minion(object):
|
||||
'''
|
||||
Reload the functions dict for this minion, reading in any new functions
|
||||
'''
|
||||
self.opts['facter'] = salt.config.facter_data()
|
||||
self.functions = self.__load_functions()
|
||||
self.opts['logger'].debug('Refreshed functions, loaded functions: '\
|
||||
+ str(self.functions))
|
||||
return True
|
||||
|
||||
def authenticate(self):
|
||||
'''
|
||||
|
@ -2,15 +2,6 @@
|
||||
Control aspects of the facter data
|
||||
'''
|
||||
|
||||
import salt.config
|
||||
|
||||
def reload():
|
||||
'''
|
||||
Reload the Facter data for this minion
|
||||
'''
|
||||
__facter__ = salt.config.facter_data()
|
||||
return True
|
||||
|
||||
def list():
|
||||
'''
|
||||
Return the facter data
|
||||
|
Loading…
Reference in New Issue
Block a user