summaryrefslogtreecommitdiff
path: root/troveclient/shell.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-10-09 23:03:44 -0400
committerMonty Taylor <mordred@inaugust.com>2013-10-09 23:03:44 -0400
commit06e7ba45863517fe1bd270c93508057c4a3bad1b (patch)
tree6bb77b13a52748fcdaca463980f2f530daefa888 /troveclient/shell.py
parent42db0cf585504472ea440611826d62ce8a22fe81 (diff)
downloadpython-troveclient-06e7ba45863517fe1bd270c93508057c4a3bad1b.tar.gz
Add support for a service type env var1.0.0
Rackspace is currently setting their service types to weird things. Support them, because we love special snowflakes. Change-Id: I1519be00a3086945338a953bc2a1e7a4e0e65400
Diffstat (limited to 'troveclient/shell.py')
-rw-r--r--troveclient/shell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/troveclient/shell.py b/troveclient/shell.py
index 53a522c..27fe0c8 100644
--- a/troveclient/shell.py
+++ b/troveclient/shell.py
@@ -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)