Merge pull request #37614 from gtmanfred/2016.3

remove redundant code
This commit is contained in:
Mike Place 2016-11-11 15:49:13 +13:00 committed by GitHub
commit 35c8333d04

View file

@ -2765,12 +2765,8 @@ class BaseHighState(object):
'''
if not self.opts['autoload_dynamic_modules']:
return
if self.opts.get('local', False):
syncd = self.state.functions['saltutil.sync_all'](list(matches),
refresh=False)
else:
syncd = self.state.functions['saltutil.sync_all'](list(matches),
refresh=False)
syncd = self.state.functions['saltutil.sync_all'](list(matches),
refresh=False)
if syncd['grains']:
self.opts['grains'] = salt.loader.grains(self.opts)
self.state.opts['pillar'] = self.state._gather_pillar()