From 8107c4efc719d85b3f7a1be525fcf5784e514766 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 6 Oct 2015 21:25:28 -0400 Subject: [PATCH] Fixing a bug in galaxy parsing of text spec file lines --- lib/ansible/cli/galaxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/galaxy.py b/lib/ansible/cli/galaxy.py index 16aff1f0fd..60970929ac 100644 --- a/lib/ansible/cli/galaxy.py +++ b/lib/ansible/cli/galaxy.py @@ -318,7 +318,7 @@ 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)) - role = RoleRequirement.role_yaml_parse(rline) + role = RoleRequirement.role_yaml_parse(rline.strip()) roles_left.append(GalaxyRole(self.galaxy, **role)) f.close() except (IOError, OSError) as e: