Add support for a service type env var

Rackspace is currently setting their service types to weird things.
Support them, because we love special snowflakes.

Change-Id: I1519be00a3086945338a953bc2a1e7a4e0e65400
This commit is contained in:
Monty Taylor 2013-10-09 23:03:44 -04:00
parent 42db0cf585
commit 06e7ba4586
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ class OpenStackTroveShell(object):
parser.add_argument('--service-type',
metavar='<service-type>',
default=utils.env('OS_SERVICE_TYPE',
'TROVE_SERVICE_TYPE'),
help='Defaults to database for most actions')
parser.add_argument('--service_type',
help=argparse.SUPPRESS)