mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge remote branch 'upstream/develop' into develop
This commit is contained in:
commit
60b05663de
@ -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,
|
||||
|
@ -127,7 +127,7 @@ def extracted(name,
|
||||
cwd=name)
|
||||
if results['retcode'] != 0:
|
||||
return results
|
||||
if __salt__['cmd.retcode']('tar --version | grep bsdtar') == 0:
|
||||
if __salt__['cmd.retcode']('tar --version | grep bsdtar') == 0:
|
||||
files = results['stderr']
|
||||
else:
|
||||
files = results['stdout']
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user