Skip to content
Snippets Groups Projects
Commit 9d9a1ce1 authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Ensure absolute path in glob output.

A simple normalization making it easier later.
parent 66608694
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,11 @@ class ModuleEntry: ...@@ -29,6 +29,11 @@ class ModuleEntry:
Absolute path in the filesystem where the module can be found. Absolute path in the filesystem where the module can be found.
:param strings_output: :param strings_output:
Output of ``puppet strings``. Output of ``puppet strings``.
:param metadata:
Parsed contents of the modules ``metadata.json``.
:param doc_files:
List of absolute paths to documentation files provided by the
upstream module.
""" """
name: str name: str
...@@ -98,7 +103,7 @@ def get_module(cache: Cache, ...@@ -98,7 +103,7 @@ def get_module(cache: Cache,
except FileNotFoundError: except FileNotFoundError:
metadata = {} metadata = {}
doc_files = glob(os.path.join(path, '*.md')) doc_files = glob(os.path.join(os.path.abspath(path), '*.md'))
return ModuleEntry(name=name, return ModuleEntry(name=name,
path=path, path=path,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment