original_docstring: 
          Get the list of the relation info for each unit.
  
          Returns a list of dicts, where each dict contains the zookeeper
          host (address) and the port (as a string).
  
          For example::
              [
                  {
                      'host': '10.1.1.1',
                      'port': '80',
                  },
              ]
          
docstring: Get the list of the relation info for each unit.
  Returns a list of dicts, where each dict contains the zookeeper
  host (address) and the port (as a string).
  
  
docstring_tokens: Get the list of the relation info for each unit . Returns a list of dicts where each dict contains the zookeeper host ( address ) and the port ( as a string ) .
code: def list_unit_data(self):
          """
          Get the list of the relation info for each unit.
  
          Returns a list of dicts, where each dict contains the zookeeper
          host (address) and the port (as a string).
  
          For example::
              [
                  {
                      'host': '10.1.1.1',
                      'port': '80',
                  },
              ]
          """
          units_data = []
          for relation in self.relations:
              for unit in relation.joined_units:
                  host = unit.received['host']
                  port = unit.received['port']
                  if not (host and port):
                      continue
                  units_data.append({
                      'host': host,
                      'port': port,
                  })
          return units_data
code_tokens: def list_unit_data ( self ) : units_data = [ ] for relation in self . relations : for unit in relation . joined_units : host = unit . received [ 'host' ] port = unit . received [ 'port' ] if not ( host and port ) : continue units_data . append ( { 'host' : host , 'port' : port , } ) return units_data
short_docstring: Get the list of the relation info for each unit.
short_docstring_tokens: Get the list of the relation info for each unit .
comment: """
          Get the list of the relation info for each unit.
  
          Returns a list of dicts, where each dict contains the zookeeper
          host (address) and the port (as a string).
  
          For example::
              [
                  {
                      'host': '10.1.1.1',
                      'port': '80',
                  },
              ]
          """