Skip to content

Instantly share code, notes, and snippets.

@zenware
Created October 19, 2020 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zenware/3acd9501329c5d04923295b18e0f570b to your computer and use it in GitHub Desktop.
Save zenware/3acd9501329c5d04923295b18e0f570b to your computer and use it in GitHub Desktop.
ansible-doc -vvv --list cisco.ios.ios_facts
ansible-doc 2.10.2
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/jml/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/jml/.local/lib/python3.6/site-packages/ansible
executable location = /home/jml/.local/bin/ansible-doc
python version = 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0]
Using /etc/ansible/ansible.cfg as config file
ERROR! Unexpected Exception, this is probably a bug: too many values to unpack (expected 2)
the full traceback was:
Traceback (most recent call last):
File "/home/jml/.local/bin/ansible-doc", line 123, in <module>
exit_code = cli.run()
File "/home/jml/.local/lib/python3.6/site-packages/ansible/cli/doc.py", line 215, in run
add_collection_plugins(self.plugin_list, plugin_type, coll_filter=coll_filter)
File "/home/jml/.local/lib/python3.6/site-packages/ansible/cli/doc.py", line 55, in add_collection_plugins
for b_path in b_colldirs:
File "/home/jml/.local/lib/python3.6/site-packages/ansible/collections/list.py", line 70, in list_collection_dirs
(nsp, coll) = coll_filter.split('.')
ValueError: too many values to unpack (expected 2)
ansible-doc 2.10.2
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/jml/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/jml/.local/lib/python3.6/site-packages/ansible
executable location = /home/jml/.local/bin/ansible-doc
python version = 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment