Merge pull request #34048 from terminalmage/issue30100

RFC: proposed fix for multiple fileserver updates in masterless runs
This commit is contained in:
Thomas S Hatch 2016-06-16 15:10:59 -06:00 committed by GitHub
commit 3119693dac

View file

@ -723,7 +723,12 @@ class FSChan(object):
self.kwargs = kwargs
self.fs = Fileserver(self.opts)
self.fs.init()
self.fs.update()
if self.opts.get('file_client', 'remote') == 'local':
if '__fs_update' not in self.opts:
self.fs.update()
self.opts['__fs_update'] = True
else:
self.fs.update()
self.cmd_stub = {'ext_nodes': {}}
def send(self, load, tries=None, timeout=None):