From c23324ef4806706bef257e711ac6ffaa8a833ea4 Mon Sep 17 00:00:00 2001 From: Tovin Seven Date: Mon, 19 Jun 2017 10:46:53 +0700 Subject: [PATCH] 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 Change-Id: I52415354f0c7a7483eddaa48f2acafcdecbb26fd --- novaclient/shell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/novaclient/shell.py b/novaclient/shell.py index b23a48fe7..4bf46aed6 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 '