def delete_minion_cachedir(minion_id, provider, opts, base=None):
 if isinstance(opts, dict):
  __opts__.update(opts)
 if (__opts__.get('update_cachedir', False) is False):
  return
 if (base is None):
  base = __opts__['cachedir']
 driver = next(six.iterkeys(__opts__['providers'][provider]))
 fname = '{0}.p'.format(minion_id)
 for cachedir in ('requested', 'active'):
  path = os.path.join(base, cachedir, driver, provider, fname)
  log.debug('path: {0}'.format(path))
  if os.path.exists(path):
   os.remove(path)

def delete_minion_cachedir ( minion_id , provider , opts , base = None ) : if isinstance ( opts , dict ) : __opts__ . update ( opts ) if ( __opts__ . get ( 'update_cachedir' , False ) is False ) : return if ( base is None ) : base = __opts__ [ 'cachedir' ] driver = next ( six . iterkeys ( __opts__ [ 'providers' ] [ provider ] ) ) fname = '{0}.p' . format ( minion_id ) for cachedir in ( 'requested' , 'active' ) : path = os . path . join ( base , cachedir , driver , provider , fname ) log . debug ( 'path: {0}' . format ( path ) ) if os . path . exists ( path ) : os . remove ( path )
deletes a minions entry from the cloud cachedir .