repair minionswarm for updated configdir changes

This commit is contained in:
Thomas S Hatch 2012-09-02 22:42:49 -06:00
parent a8b302b9fb
commit 94a57bd806

View file

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