Example #1
0
 def register_service(self, service, addr, attr=None):
     INFO("quant_etcd.register_service %s %s\nattrs:\n%s" % (service, addr, yaml_utils.dump_clean(attr)))
     k = self.get_service_key(service, addr)
     self.set(k, attr)
Example #2
0
 def repr_yaml(self):
     x = jsonize.encode_simple(self)
     return yaml_utils.dump_clean(x)