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:
@@ -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>',
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user