Skip to content

Commit

Permalink
Update src/ansiblelint/_prerun.py
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Fontein <felix@fontein.de>
  • Loading branch information
ssbarnea and felixfontein committed Mar 17, 2021
1 parent 7debc5b commit fcc406f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/_prerun.py
Expand Up @@ -226,7 +226,7 @@ def _prepare_ansible_paths() -> None:

def _make_module_stub(module_name: str) -> None:
# a.b.c is treated a collection
if re.match(r"\w+\.\w+\.[\.\w]+$", module_name):
if re.match(r"\w+\.\w+(\.\w+)+$", module_name):
namespace, collection, module_file = module_name.split(".", 2)
path = f"{ options.project_dir }/.cache/collections/ansible_collections/{ namespace }/{ collection }/plugins/modules"
if "." in module_file:
Expand Down

0 comments on commit fcc406f

Please sign in to comment.