@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 pluginlib.PluginError, e:
        if arg_dict.get("ignore_missing_path", False):
            cmd = ["xenstore-exists",
                   "/local/domain/%(dom_id)s/%(path)s" % arg_dict]
            ret, result = _run_command(cmd)
            # If the path exists, the cmd should return "0"
            if ret != 0:
                # No such path, so ignore the error and return the
                # string 'None', since None can't be marshalled
                # over RPC.
                return "None"
        # Either we shouldn't ignore path errors, or another
        # error was hit. Re-raise.
        raise
Returns the index of the server name if it is already in the file
dataset/ETHPy150Open nii-cloud/dodai-compute/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenstore.py/read_record--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/general/ServerRegistryMMap.py/ServerRegistryMMap.findServer