def request_minion_cachedir(minion_id, opts=None, fingerprint='', pubkey=None, provider=None, base=None):
 if (base is None):
  base = __opts__['cachedir']
 if ((not fingerprint) and (pubkey is not None)):
  fingerprint = salt.utils.pem_finger(key=pubkey, sum_type=((opts and opts.get('hash_type')) or 'sha256'))
 init_cachedir(base)
 data = {'minion_id': minion_id, 'fingerprint': fingerprint, 'provider': provider}
 fname = '{0}.p'.format(minion_id)
 path = os.path.join(base, 'requested', fname)
 with salt.utils.fopen(path, 'w') as fh_:
  msgpack.dump(data, fh_)

def request_minion_cachedir ( minion_id , opts = None , fingerprint = '' , pubkey = None , provider = None , base = None ) : if ( base is None ) : base = __opts__ [ 'cachedir' ] if ( ( not fingerprint ) and ( pubkey is not None ) ) : fingerprint = salt . utils . pem_finger ( key = pubkey , sum_type = ( ( opts and opts . get ( 'hash_type' ) ) or 'sha256' ) ) init_cachedir ( base ) data = { 'minion_id' : minion_id , 'fingerprint' : fingerprint , 'provider' : provider } fname = '{0}.p' . format ( minion_id ) path = os . path . join ( base , 'requested' , fname ) with salt . utils . fopen ( path , 'w' ) as fh_ : msgpack . dump ( data , fh_ )
creates an entry in the requested/ cachedir .