From e3ed9b95c05943e1f599080b5cd2d6b9c6eeb81d Mon Sep 17 00:00:00 2001 From: tengqm Date: Thu, 5 Mar 2015 16:25:15 +0800 Subject: [PATCH] Added support to OS_TRUST_ID --- senlinclient/cliargs.py | 5 +++++ senlinclient/shell.py | 1 + 2 files changed, 6 insertions(+) diff --git a/senlinclient/cliargs.py b/senlinclient/cliargs.py index 1c79a4a7..fab8ec8d 100644 --- a/senlinclient/cliargs.py +++ b/senlinclient/cliargs.py @@ -93,6 +93,11 @@ def add_global_identity_args(parser): default=utils.env('OS_PASSWORD'), help=_('Defaults to env[OS_PASSWORD]')) + parser.add_argument( + '--os-trust-id', dest='trust_id', metavar='TRUST_ID', + default=utils.env('OS_TRUST_ID'), + help=_('Defaults to env[OS_TRUST_ID]')) + verify_group = parser.add_mutually_exclusive_group() verify_group.add_argument( diff --git a/senlinclient/shell.py b/senlinclient/shell.py index dc3b2da9..529e0109 100644 --- a/senlinclient/shell.py +++ b/senlinclient/shell.py @@ -225,6 +225,7 @@ class SenlinShell(object): 'password': args.password, 'verify': args.verify, 'token': args.token, + 'trust_id': args.trust_id, } conn = sdk.create_connection(args.user_preferences, USER_AGENT, **kwargs)