mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Allow blank lines and comments/spaces in galaxy spec files
Fixes #10641 again. (Regression) Added test to discourage future such regression.
This commit is contained in:
parent
4b75308439
commit
91b6004149
2 changed files with 6 additions and 0 deletions
|
@ -328,6 +328,8 @@ class GalaxyCLI(CLI):
|
|||
self.display.deprecated("going forward only the yaml format will be supported")
|
||||
# roles listed in a file, one per line
|
||||
for rline in f.readlines():
|
||||
if rline.startswith("#") or rline.strip() == '':
|
||||
continue
|
||||
self.display.debug('found role %s in text file' % str(rline))
|
||||
role = RoleRequirement.role_yaml_parse(rline.strip())
|
||||
roles_left.append(GalaxyRole(self.galaxy, **role))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue