openstack-ansible/osa_toolkit
Francois Deppierraz cdc337d9a1 Fix scripts/inventory-manage.py help invocation
Without this patch, the following exception was raised.

root@os-deploy:~# /opt/openstack-ansible/scripts/inventory-manage.py -h
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 329, in main
    user_args = args()
  File "/opt/openstack-ansible/osa_toolkit/manage.py", line 100, in args
    return vars(parser.parse_args())
  File "/usr/lib/python2.7/argparse.py", line 1701, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib/python2.7/argparse.py", line 1733, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python2.7/argparse.py", line 1939, in _parse_known_args
    start_index = consume_optional(start_index)
  File "/usr/lib/python2.7/argparse.py", line 1879, in consume_optional
    take_action(action, args, option_string)
  File "/usr/lib/python2.7/argparse.py", line 1807, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/lib/python2.7/argparse.py", line 996, in __call__
    parser.print_help()
  File "/usr/lib/python2.7/argparse.py", line 2340, in print_help
    self._print_message(self.format_help(), file)
  File "/usr/lib/python2.7/argparse.py", line 2314, in format_help
    return formatter.format_help()
  File "/usr/lib/python2.7/argparse.py", line 281, in format_help
    help = self._root_section.format_help()
  File "/usr/lib/python2.7/argparse.py", line 211, in format_help
    func(*args)
  File "/usr/lib/python2.7/argparse.py", line 211, in format_help
    func(*args)
  File "/usr/lib/python2.7/argparse.py", line 517, in _format_action
    help_text = self._expand_help(action)
  File "/usr/lib/python2.7/argparse.py", line 603, in _expand_help
    return self._get_help_string(action) % params
TypeError: unsupported operand type(s) for %: 'tuple' and 'dict'
root@os-deploy:~#

Change-Id: I9c0d6ce574caabcf4b59b5896aba1b1d21096f79
2019-06-07 11:04:47 +02:00
..
__init__.py Restructure lib directory to install via pip 2017-03-30 10:19:01 -04:00
dictutils.py Improve compatibiliity with Python 3 2017-06-06 10:44:13 -04:00
filesystem.py Merge "Automatically prune the inventory backup" 2019-04-01 19:52:51 +00:00
generate.py Dynamic inventory backup corruption fix 2019-02-17 18:02:57 -06:00
ip.py Improve compatibiliity with Python 3 2017-06-06 10:44:13 -04:00
manage.py Fix scripts/inventory-manage.py help invocation 2019-06-07 11:04:47 +02:00
tools.py Restructure lib directory to install via pip 2017-03-30 10:19:01 -04:00