@jsonify
def read_record(self, arg_dict):
 cmd = ['xenstore-read', ('/local/domain/%(dom_id)s/%(path)s' % arg_dict)]
 try:
  (ret, result) = _run_command(cmd)
  return result.strip()
 except XenstoreError as e:
  if (not arg_dict.get('ignore_missing_path', False)):
   raise
  if (not _record_exists(arg_dict)):
   return 'None'
  (ret, result) = _run_command(cmd)
  return result.strip()

@ jsonify def read_record ( self , arg_dict ) : cmd = [ 'xenstore-read' , ( '/local/domain/%(dom_id)s/%(path)s' % arg_dict ) ] try : ( ret , result ) = _run_command ( cmd ) return result . strip ( ) except XenstoreError as e : if ( not arg_dict . get ( 'ignore_missing_path' , False ) ) : raise if ( not _record_exists ( arg_dict ) ) : return 'None' ( ret , result ) = _run_command ( cmd ) return result . strip ( )
returns the value stored at the given path for the given dom_id .