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:
Tovin Seven 2017-06-19 10:23:08 +07:00
parent cbfe42acae
commit c9699085aa

View File

@ -504,6 +504,7 @@ class MistralShell(app.App):
'--profile',
dest='profile',
metavar='HMAC_KEY',
default=env('OS_PROFILE'),
help='HMAC key to use for encrypting context data for performance '
'profiling of operation. This key should be one of the '
'values configured for the osprofiler middleware in mistral, '