mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixing a bug in galaxy parsing of text spec file lines
This commit is contained in:
parent
7a815b7296
commit
8107c4efc7
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ class GalaxyCLI(CLI):
|
||||||
# roles listed in a file, one per line
|
# roles listed in a file, one per line
|
||||||
for rline in f.readlines():
|
for rline in f.readlines():
|
||||||
self.display.debug('found role %s in text file' % str(rline))
|
self.display.debug('found role %s in text file' % str(rline))
|
||||||
role = RoleRequirement.role_yaml_parse(rline)
|
role = RoleRequirement.role_yaml_parse(rline.strip())
|
||||||
roles_left.append(GalaxyRole(self.galaxy, **role))
|
roles_left.append(GalaxyRole(self.galaxy, **role))
|
||||||
f.close()
|
f.close()
|
||||||
except (IOError, OSError) as e:
|
except (IOError, OSError) as e:
|
||||||
|
|
Loading…
Reference in a new issue