def _record_exists(arg_dict):
 cmd = ['xenstore-exists', ('/local/domain/%(dom_id)s/%(path)s' % arg_dict)]
 try:
  (ret, result) = _run_command(cmd)
 except XenstoreError as e:
  if (e.stderr == ''):
   return False
  raise
 return True

def _record_exists ( arg_dict ) : cmd = [ 'xenstore-exists' , ( '/local/domain/%(dom_id)s/%(path)s' % arg_dict ) ] try : ( ret , result ) = _run_command ( cmd ) except XenstoreError as e : if ( e . stderr == '' ) : return False raise return True
returns whether or not the given record exists .