remove redundent code

This commit is contained in:
Daniel Wallace 2016-11-10 16:22:59 -06:00
parent 74aee1e372
commit 71c2df89a9

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()