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: Ia24144f5858d05566ffa32a329884dc4dd7ec570
This commit is contained in:
@@ -504,6 +504,7 @@ class MistralShell(app.App):
|
|||||||
'--profile',
|
'--profile',
|
||||||
dest='profile',
|
dest='profile',
|
||||||
metavar='HMAC_KEY',
|
metavar='HMAC_KEY',
|
||||||
|
default=env('OS_PROFILE'),
|
||||||
help='HMAC key to use for encrypting context data for performance '
|
help='HMAC key to use for encrypting context data for performance '
|
||||||
'profiling of operation. This key should be one of the '
|
'profiling of operation. This key should be one of the '
|
||||||
'values configured for the osprofiler middleware in mistral, '
|
'values configured for the osprofiler middleware in mistral, '
|
||||||
|
|||||||
Reference in New Issue
Block a user