code: def _add_volume(line):
      '''
      Analyse the line of volumes of ``drbdadm status``
      '''
      section = _analyse_status_type(line)
      fields = line.strip().split()
  
      volume = {}
      for field in fields:
          volume[field.split(':')[0]] = field.split(':')[1]
  
      if section == 'LOCALDISK':
          resource['local volumes'].append(volume)
      else:
          # 'PEERDISK'
          lastpnodevolumes.append(volumef _add_volume(line):
      '''
      Analyse the line of volumes of ``drbdadm status``
      '''
      section = _analyse_status_type(line)
      fields = line.strip().split()
  
      volume = {}
      for field in fields:
          volume[field.split(':')[0]] = field.split(':')[1]
  
      if section == 'LOCALDISK':
          resource['local volumes'].append(volume)
      else:
          # 'PEERDISK'
          lastpnodevolumes.append(volume)
docs: Analyse the line of volumes of ``drbdadm status``