Pass path to GalaxyRole object (#43051) (#44583)

This will list all roles in all paths in roles_path rather than just the first path in roles_path.

(cherry picked from commit 05fff27415)
pull/45257/head
Sam Doran 6 years ago committed by Matt Davis
parent 12d0684ee2
commit 2a2e4721a4

@ -0,0 +1,2 @@
bugfixes:
- ansible-galaxy - properly list all roles in roles_path (https://github.com/ansible/ansible/issues/43010)

@ -488,7 +488,7 @@ class GalaxyCLI(CLI):
path_files = os.listdir(role_path)
path_found = True
for path_file in path_files:
gr = GalaxyRole(self.galaxy, path_file)
gr = GalaxyRole(self.galaxy, path_file, path=path)
if gr.metadata:
install_info = gr.install_info
version = None

Loading…
Cancel
Save