Merge "shell: disallow abbrev in argparse"

This commit is contained in:
Jenkins 2016-03-21 17:53:18 +00:00 committed by Gerrit Code Review
commit fa7312ef23
2 changed files with 5 additions and 3 deletions

View File

@ -99,8 +99,10 @@ class GnocchiShell(app.App):
:param version: version number for the application
:paramtype version: str
"""
parser = super(GnocchiShell, self).build_option_parser(description,
version)
parser = super(GnocchiShell, self).build_option_parser(
description,
version,
argparse_kwargs={'allow_abbrev': False})
# Global arguments, one day this should go to keystoneauth1
parser.add_argument(
'--os-region-name',

View File

@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later.
pbr<2.0,>=1.4
cliff>=1.14.0 # Apache-2.0
cliff>1.16.0 # Apache-2.0
oslo.serialization>=1.4.0 # Apache-2.0
oslo.utils>=2.0.0 # Apache-2.0
keystoneauth1>=1.0.0