def _AllDRBDSecrets(self):
    def helper(disk, result):
      """Recursively gather secrets from this disk."""
      if disk.dev_type == constants.DT_DRBD8:
        result.append(disk.logical_id[5])
      if disk.children:
        for child in disk.children:
          helper(child, result)

    result = []
    for disk in self._ConfigData().disks.values():
      helper(disk, result)

    return result
Return all DRBD secrets present in the config.
dataset/ETHPy150Open ganeti/ganeti/lib/config/__init__.py/ConfigWriter._AllDRBDSecrets