summaryrefslogtreecommitdiff
path: root/troveclient
diff options
context:
space:
mode:
Diffstat (limited to 'troveclient')
-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)