mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Things I broke in getting facter adn clustering integrated
This commit is contained in:
parent
fb8945a325
commit
678788a4ab
@ -5,6 +5,7 @@ All salt configuration loading and defaults should be in this module
|
||||
import os
|
||||
import sys
|
||||
import socket
|
||||
import subprocess
|
||||
# Import third party libs
|
||||
import yaml
|
||||
# Import salt libs
|
||||
|
@ -48,7 +48,7 @@ class Minion(object):
|
||||
# functionality.
|
||||
mods = set()
|
||||
# Load up the facter information
|
||||
|
||||
functions = {}
|
||||
mod_dir = os.path.join(distutils.sysconfig.get_python_lib(),
|
||||
'salt/modules')
|
||||
for fn_ in os.listdir(mod_dir):
|
||||
@ -170,7 +170,7 @@ class Minion(object):
|
||||
Reads in the facter regular expresion match
|
||||
'''
|
||||
comps = tgt.split()
|
||||
return bool(re.match(comps[1], self.opts['facter'][comps[0]])
|
||||
return bool(re.match(comps[1], self.opts['facter'][comps[0]]))
|
||||
|
||||
def _return_pub(self, ret):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user