ansible / mazer

Experimental Ansible Galaxy Content Manager
GNU General Public License v3.0
114 stars 18 forks source link

'mazer list' on multi-content repos looks for install_info in the wrong places #119

Closed alikins closed 5 years ago

alikins commented 6 years ago

Bug Report

After installing a multi-content repo that includes multiple roles (like git+https://github.com/theforeman/forklift from #112), then running mazer list, the list output will fail to find role/*/meta/main.yml and role/*/meta/.galaxy_install_info for most repos.

The meta/.galaxy_install_info is created on install, but the list command ends up looking in the wrong dirs for the role meta/main.yml.

The list command will find the repos and contents, but wont show version info.

Checking debug logs shows

[2018-08-08 12:25:04,283 12263 D] ansible_galaxy.role_metadata load_from_filename:49  - looking for content meta data from path: /home/adrian/.ansible/content/forklift/disable_ipv6/roles/disable_ipv6/meta/main.yml

/home/adrian/.ansible/content/forklift/disable_ipv6/roles/disable_ipv6/meta/main.yml is incorrect, and should be /home/adrian/.ansible/content/forklift/forklift/roles/disable_ipv6/meta/main.yml

The content name is being used instead of the repo name when finding the metadata/install info

GALAXY CLI VERSION
name = mazer
version = 0.2.0
config_file = /home/adrian/.ansible/mazer.yml
uname = Linux, newswoop, 4.16.6-202.fc27.x86_64, #1 SMP Wed May 2 00:09:32 UTC 2018, x86_64
executable_location = /home/adrian/venvs/galaxy-py27/bin/mazer
python_version = 2.7.15 (default, May 15 2018, 15:37:31) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
python_executable = /home/adrian/venvs/galaxy-py27/bin/python
alikins commented 5 years ago

Fixed by https://github.com/ansible/mazer/pull/156