mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
repair minionswarm for updated configdir changes
This commit is contained in:
parent
a8b302b9fb
commit
94a57bd806
1 changed files with 2 additions and 1 deletions
|
@ -93,6 +93,7 @@ class Swarm(object):
|
|||
'cachedir': os.path.join(dpath, 'cache'),
|
||||
'master': self.opts['master'],
|
||||
}
|
||||
path = os.path.join(dpath, 'minion')
|
||||
if self.opts['keep']:
|
||||
ignore = set()
|
||||
keep = self.opts['keep'].split(',')
|
||||
|
@ -104,7 +105,7 @@ class Swarm(object):
|
|||
data['disable_modules'] = list(ignore)
|
||||
with open(path, 'w+') as fp_:
|
||||
yaml.dump(data, fp_)
|
||||
self.confs.add(path)
|
||||
self.confs.add(dpath)
|
||||
|
||||
def start_minions(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue