def load_reg():
 reg_dir = _reg_dir()
 regfile = os.path.join(reg_dir, 'register')
 try:
  with salt.utils.fopen(regfile, 'r') as fh_:
   return msgpack.load(fh_)
 except:
  log.error('Could not write to msgpack file {0}'.format(__opts__['outdir']))
  raise

def load_reg ( ) : reg_dir = _reg_dir ( ) regfile = os . path . join ( reg_dir , 'register' ) try : with salt . utils . fopen ( regfile , 'r' ) as fh_ : return msgpack . load ( fh_ ) except : log . error ( 'Could not write to msgpack file {0}' . format ( __opts__ [ 'outdir' ] ) ) raise
load the register from msgpack files .