diff options
author | Tovin Seven <vinhnt@vn.fujitsu.com> | 2017-06-19 10:46:53 +0700 |
---|---|---|
committer | Tovin Seven <vinhnt@vn.fujitsu.com> | 2017-06-19 13:37:51 +0700 |
commit | c23324ef4806706bef257e711ac6ffaa8a833ea4 (patch) | |
tree | 9b1c9a6a6dacb57cb5a6eed5e794264ed076cff8 /novaclient/shell.py | |
parent | ddb386b2dffaf06077c2a0768c56ed5642d216dc (diff) | |
download | python-novaclient-c23324ef4806706bef257e711ac6ffaa8a833ea4.tar.gz |
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
Diffstat (limited to 'novaclient/shell.py')
-rw-r--r-- | novaclient/shell.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/novaclient/shell.py b/novaclient/shell.py index b23a48fe..4bf46aed 100644 --- a/novaclient/shell.py +++ b/novaclient/shell.py @@ -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 ' |