class Instance(object): def __init__(self, name): self.name = name self.hostname = get_docker_bridge() self.port_rez = PortReservation() @property def port(self): return self.port_rez.get() @property def addr(self): return '{}:{}'.format(self.hostname, self.port)
def __init__(self, name): self.name = name self.hostname = get_docker_bridge() self.port_rez = PortReservation()