pulp / pulp-docs

Python Package to help aggregating Pulp's multirepo ecosystem into a unified doc.
https://pedro-psb.github.io/pulp-docs/
2 stars 4 forks source link

Fix bug when creating nested folders #13

Closed pedro-psb closed 6 months ago

pedro-psb commented 6 months ago

An error would not allow to create nested folder under {persona}/{content}:

 File "/home/ipanova/.local/lib/python3.11/site-packages/pulp_docs/utils/aggregation.py", line 24, in section
    section = fn(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^
  File "/home/ipanova/.local/lib/python3.11/site-packages/pulp_docs/utils/aggregation.py", line 122, in repo_grouping
    quickstart_file = self._pop_quickstart_from(_repo_content)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ipanova/.local/lib/python3.11/site-packages/pulp_docs/utils/aggregation.py", line 137, in _pop_quickstart_from
    filename = path.split("/")[-1]
               ^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'split'