def activate_minion_cachedir(minion_id, base=None):
 if (base is None):
  base = __opts__['cachedir']
 fname = '{0}.p'.format(minion_id)
 src = os.path.join(base, 'requested', fname)
 dst = os.path.join(base, 'active')
 shutil.move(src, dst)

def activate_minion_cachedir ( minion_id , base = None ) : if ( base is None ) : base = __opts__ [ 'cachedir' ] fname = '{0}.p' . format ( minion_id ) src = os . path . join ( base , 'requested' , fname ) dst = os . path . join ( base , 'active' ) shutil . move ( src , dst )
moves a minion from the requested/ cachedir into the active/ cachedir .