errors when handling missing meta/main.yml
rl201 opened this issue · 4 comments
rl201 commented
roles without meta/main.yml files seem to produce spurious dependencies. I think this is due to a mistake in scan.py around line 202:
rl201 commented
if not os.path.exists(self.paths["meta"]):
return ""
should perhaps be
if not os.path.exists(self.paths["meta"]):
self.dependencies=[]
return ""
nickjj commented
Are you saying it's reporting dependencies for the wrong role (the last role with a meta/main.yml) as is?
rl201 commented
Are you saying it's reporting dependencies for the wrong role as is?
Yes. If role A depends, via meta/main.yml, on role B but role B has no
meta/main.yml file, role B is reported as depending on itself. Creating an
empty meta/main.yml yields the expected behaviour.
nickjj commented
I'd happily accept a PR if you wanted to create one.