Skip to content

Instantly share code, notes, and snippets.

@a1git
Created April 30, 2020 10:28
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 a1git/f019295b35c91b8908d5bb737635ec04 to your computer and use it in GitHub Desktop.
Save a1git/f019295b35c91b8908d5bb737635ec04 to your computer and use it in GitHub Desktop.
# /opt/openstack-ansible/scripts/inventory-manage.py -l
Traceback (most recent call last):
File "/opt/openstack-ansible/scripts/inventory-manage.py", line 39, in <module>
manage.main()
File "/opt/openstack-ansible/osa_toolkit/manage.py", line 336, in main
print(print_inventory(inventory, user_args['sort']))
File "/opt/ansible-runtime/local/lib/python3.6/site-packages/prettytable.py", line 237, in __str__
return self.__unicode__()
File "/opt/ansible-runtime/local/lib/python3.6/site-packages/prettytable.py", line 243, in __unicode__
return self.get_string()
File "/opt/ansible-runtime/local/lib/python3.6/site-packages/prettytable.py", line 984, in get_string
rows = self._get_rows(options)
File "/opt/ansible-runtime/local/lib/python3.6/site-packages/prettytable.py", line 933, in _get_rows
rows.sort(reverse=options["reversesort"], key=options["sort_key"])
TypeError: '<' not supported between instances of 'NoneType' and 'str'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment