Lint fixes

This commit is contained in:
Thomas S Hatch 2014-01-11 20:26:47 -07:00
parent 830912eaa6
commit b7cabdfe18
2 changed files with 5 additions and 3 deletions

View File

@ -75,6 +75,7 @@ def pillar(tgt=None, expr_form='glob', **kwargs):
salt.output.display_output(cached_pillar, None, __opts__)
return cached_pillar
def mine(tgt=None, expr_form='glob', **kwargs):
'''
Return cached mine data of the targeted minions
@ -103,6 +104,7 @@ def mine(tgt=None, expr_form='glob', **kwargs):
cached_mine = pillar_util.get_cached_mine_data()
salt.output.display_output(cached_mine, None, __opts__)
def _clear_cache(tgt=None,
expr_form='glob',
clear_pillar=False,

View File

@ -98,9 +98,9 @@ class MasterPillarUtil(object):
mine_data = dict([(minion_id, {}) for minion_id in minion_ids])
if (not self.opts.get('minion_data_cache', False)
and not self.opts.get('enforce_mine_cache', False)):
log.debug('Skipping cached mine data minion_data_cache'
'and enfore_mine_cache are both disabled.')
return mine_data
log.debug('Skipping cached mine data minion_data_cache'
'and enfore_mine_cache are both disabled.')
return mine_data
mdir = os.path.join(self.opts['cachedir'], 'minions')
try:
for minion_id in minion_ids: