os-client-config/os_client_config/tests
Jordan Pittier ff2c06c305 Make _fix_argv() somewhat compatible with Argparse action='append'
Python Argparse supports the 'append' action [1] which is super handy to allow
a user to repeat several times the same argument, each time with different
values.

This doesn't work with occ that tries to "fix argv" but raises this error:

os_client_config.exceptions.OpenStackConfigException: The following options
were given: '--foo,--foo' which contain duplicates except that one has _
and one has -. There is no sane way for us to know what you're doing.
Remove the duplicate option and try again

This patch tweak the _fix_argv() function so that it doesn't explode
if the duplicate option has no '_' not '-' in its name.

Change-Id: I4f06b6aff8d3ab1df45637399bc3a9b4b61764a9
Related-bug: #1685630
2017-04-23 17:47:49 +02:00
..
__init__.py Initial Cookiecutter Commit. 2014-09-20 16:16:13 -07:00
base.py Add ability to pass in user_agent 2017-04-18 03:51:04 -05:00
test_cloud_config.py Add ability to pass in user_agent 2017-04-18 03:51:04 -05:00
test_config.py Make _fix_argv() somewhat compatible with Argparse action='append' 2017-04-23 17:47:49 +02:00
test_environ.py Revert "Remove validate_auth_ksc" 2016-11-14 13:23:12 -06:00
test_init.py Remove the keystoneclient auth fallback 2017-02-15 10:30:12 -06:00
test_json.py Use json for in-tree cloud data 2015-11-03 10:38:17 -05:00