Add trust-id to command line arguments

This patch enables TRUST_ID based authentication for users to try
the examples. Without this, users won't be aware of this important
parameter/feature.

Change-Id: Ide409c91d8c0530aebaef3b2682997533b639f6c
This commit is contained in:
tengqm
2015-03-31 06:38:29 -04:00
parent 2e81c7e42c
commit 85a28f8690
2 changed files with 8 additions and 0 deletions

View File

@@ -289,6 +289,13 @@ def option_parser():
default=env('OS_TOKEN', default=None),
help='Defaults to env[OS_TOKEN]',
)
parser.add_argument(
'--os-trust-id',
dest='trust_id',
metavar='<trust_id>',
default=env('OS_TRUST_ID', default=None),
help='Defaults to env[OS_TRUST_ID]',
)
parser.add_argument(
'--data',
metavar='<data>',

View File

@@ -35,6 +35,7 @@ def make_connection(opts):
'user_domain_name': opts.user_domain_name,
'username': opts.username,
'password': opts.password,
'trust_id': opts.trust_id,
'verify': opts.verify,
'token': opts.token,
}