def InitBalanceSet(self):
    """Construct a list of instances to balance traffic over."""
    if self.IsMaster():
      self.balance_set = [ self.child_app_instance.port ]

    if self.IsBackendBalancer():
      self.balance_set = []
      for instance in xrange(self.backend_entry.instances):
        port = backends_api._get_dev_port(self.backend_id, instance)
        self.balance_set.append(port)
    def InitBalanceSet(self):
        """Construct a list of instances to balance traffic over."""
        if self.IsMaster():
            self.balance_set = [self.child_app_instance.port]

        if self.IsBackendBalancer():
            self.balance_set = []
            for instance in xrange(self.backend_entry.instances):
                port = backends_api._get_dev_port(self.backend_id, instance)
                self.balance_set.append(port)