mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 09:54:02 -07:00
More ansible-galaxy fixes for the old spec file format
This commit is contained in:
parent
fb822a4305
commit
9c9897805f
3 changed files with 28 additions and 7 deletions
|
@ -318,7 +318,8 @@ class GalaxyCLI(CLI):
|
|||
# roles listed in a file, one per line
|
||||
for rline in f.readlines():
|
||||
self.display.debug('found role %s in text file' % str(rline))
|
||||
roles_left.append(GalaxyRole(self.galaxy, **RoleRequirement.role_yaml_parse(rline)))
|
||||
role = RoleRequirement.role_yaml_parse(rline)
|
||||
roles_left.append(GalaxyRole(self.galaxy, **role))
|
||||
f.close()
|
||||
except (IOError, OSError) as e:
|
||||
self.display.error('Unable to open %s: %s' % (role_file, str(e)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue