def change_minion_cachedir(minion_id, cachedir, data=None, base=None):
 if (not isinstance(data, dict)):
  return False
 if (base is None):
  base = __opts__['cachedir']
 fname = '{0}.p'.format(minion_id)
 path = os.path.join(base, cachedir, fname)
 with salt.utils.fopen(path, 'r') as fh_:
  cache_data = msgpack.load(fh_)
 cache_data.update(data)
 with salt.utils.fopen(path, 'w') as fh_:
  msgpack.dump(cache_data, fh_)

def change_minion_cachedir ( minion_id , cachedir , data = None , base = None ) : if ( not isinstance ( data , dict ) ) : return False if ( base is None ) : base = __opts__ [ 'cachedir' ] fname = '{0}.p' . format ( minion_id ) path = os . path . join ( base , cachedir , fname ) with salt . utils . fopen ( path , 'r' ) as fh_ : cache_data = msgpack . load ( fh_ ) cache_data . update ( data ) with salt . utils . fopen ( path , 'w' ) as fh_ : msgpack . dump ( cache_data , fh_ )
changes the info inside a minions cachedir entry .