Ensure only one fileserver update in a masterless run

Resolves #30100.
This commit is contained in:
Erik Johnson 2016-06-15 14:49:27 -05:00
parent 7d940aed1f
commit 715e7af8a4

View File

@ -723,7 +723,12 @@ class FSChan(object):
self.kwargs = kwargs self.kwargs = kwargs
self.fs = Fileserver(self.opts) self.fs = Fileserver(self.opts)
self.fs.init() 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': {}} self.cmd_stub = {'ext_nodes': {}}
def send(self, load, tries=None, timeout=None): def send(self, load, tries=None, timeout=None):