ansible / mazer

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

Mazer info #284

Open ironfroggy opened 5 years ago

ironfroggy commented 5 years ago

Bug Report

MAZER VERSION
name = mazer
version = 1.0.0
config_file = /home/calvin/.ansible/mazer.yml
uname = Linux, willow-epsilon, 4.4.0-17134-Microsoft, #706-Microsoft Mon Apr 01 18:13:00 PST 2019, x86_64
executable_location = /mnt/c/Users/calvin/redhat/.virtualenvs/orion/bin/mazer
python_version = 3.7.1 (default, Oct 22 2018, 11:21:55) [GCC 8.2.0]
python_executable = /mnt/c/Users/calvin/redhat/.virtualenvs/orion/bin/python3.7
CONFIGURATION

Defaults, no config file.

SUMMARY

mazer info seems to be currently broken, expecting an old version of the API with data in a summary_fields key that is no longer part of the collections API.

STEPS TO REPRODUCE
mazer info robertdebock.ansible_development_environment
EXPECTED RESULTS

Expect to see information about a given collection.

ACTUAL RESULTS
Traceback (most recent call last):
  File "/mnt/c/Users/calvin/redhat/.virtualenvs/orion/bin/mazer", line 11, in <module>
    sys.exit(main())
  File "/mnt/c/Users/calvin/redhat/.virtualenvs/orion/lib/python3.7/site-packages/ansible_galaxy_cli/main.py", line 36, in main    exit_code = cli.run()
  File "/mnt/c/Users/calvin/redhat/.virtualenvs/orion/lib/python3.7/site-packages/ansible_galaxy_cli/cli/galaxy.py", line 240, in run    return self.execute()
  File "/mnt/c/Users/calvin/redhat/.virtualenvs/orion/lib/python3.7/site-packages/ansible_galaxy_cli/cli/__init__.py", line 152, in execute    return fn()
  File "/mnt/c/Users/calvin/redhat/.virtualenvs/orion/lib/python3.7/site-packages/ansible_galaxy_cli/cli/galaxy.py", line 286, in execute_info    offline=self.options.offline)
  File "/mnt/c/Users/calvin/redhat/.virtualenvs/orion/lib/python3.7/site-packages/ansible_galaxy/actions/info.py", line 113, in info_repository_specs    display_callback(_repr_remote_repo(remote_data))
  File "/mnt/c/Users/calvin/redhat/.virtualenvs/orion/lib/python3.7/site-packages/ansible_galaxy/actions/info.py", line 44, in _repr_remote_repo    repo_namespace = remote_data['summary_fields']['namespace']['name']
KeyError: 'summary_fields'