Make --profile load from environment variables
--profile argument can be loaded from OS_PROFILE environment variables to avoid repeating --profile in client commands. Co-Authored-By: Hieu LE <hieulq@vn.fujitsu.com> Change-Id: I52415354f0c7a7483eddaa48f2acafcdecbb26fd
This commit is contained in:
parent
ddb386b2df
commit
c23324ef48
@ -505,6 +505,7 @@ class OpenStackComputeShell(object):
|
||||
if osprofiler_profiler:
|
||||
parser.add_argument('--profile',
|
||||
metavar='HMAC_KEY',
|
||||
default=utils.env('OS_PROFILE'),
|
||||
help='HMAC key to use for encrypting context '
|
||||
'data for performance profiling of operation. '
|
||||
'This key should be the value of the HMAC key '
|
||||
|
Loading…
Reference in New Issue
Block a user