Alter sys.reload_functions to also refresh the facter data

This commit is contained in:
Thomas S Hatch 2011-03-28 10:19:09 -06:00
parent d3dd180d8a
commit ec45409099
2 changed files with 2 additions and 9 deletions

View File

@ -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):
'''

View File

@ -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