def set_hostinfo(self, host, attr, val):
        "increase or decrease the maximum load allowed on a given host"
        try:
            setattr(self.hosts[host], attr, val)
        except __HOLE__:
            self.hosts[host] = HostInfo('%s=%s' % (attr, str(val)))
        return True  # USE THIS AS DEFAULT XMLRPC RETURN VALUE
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/ResourceController.set_hostinfo