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: I3521dbd3142edb1a94f34458769530732e3930ed
This commit is contained in:
parent
175a0ac028
commit
50435d62d3
@ -363,11 +363,13 @@ class OpenStackZunShell(object):
|
||||
if profiler:
|
||||
parser.add_argument('--profile',
|
||||
metavar='HMAC_KEY',
|
||||
default=cliutils.env('OS_PROFILE',
|
||||
default=None),
|
||||
help='HMAC key to use for encrypting context '
|
||||
'data for performance profiling of '
|
||||
'operation. This key should be the '
|
||||
'value of the HMAC key configured for '
|
||||
'the OSprofiler middleware in nova; it '
|
||||
'the OSprofiler middleware in zun; it '
|
||||
'is specified in the Zun configuration '
|
||||
'file at "/etc/zun/zun.conf". Without '
|
||||
'the key, profiling functions will not '
|
||||
|
Loading…
x
Reference in New Issue
Block a user