More ansible-galaxy fixes for the old spec file format

This commit is contained in:
James Cammarata 2015-10-06 01:54:48 -04:00
commit 9c9897805f
3 changed files with 28 additions and 7 deletions

View file

@ -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)))