diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-07-26 04:33:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-07-26 04:33:49 +0000 |
| commit | ca9ae01841bbf2d8fb69802882d1811f404c080d (patch) | |
| tree | 66a1cd5bdb4cb717f954734f465498b3c4706fe2 /glanceclient/shell.py | |
| parent | f455cb1939ebdef90da905b40710c8f85a8a3d12 (diff) | |
| parent | c0f88d5fc0fd947319e022cfeba21bcb15635316 (diff) | |
| download | python-glanceclient-ca9ae01841bbf2d8fb69802882d1811f404c080d.tar.gz | |
Merge "Make --profile load from environment variables"
Diffstat (limited to 'glanceclient/shell.py')
| -rw-r--r-- | glanceclient/shell.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/glanceclient/shell.py b/glanceclient/shell.py index 55862cf..416d173 100644 --- a/glanceclient/shell.py +++ b/glanceclient/shell.py @@ -184,16 +184,18 @@ class OpenStackImagesShell(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 HMAC key ' 'configured in osprofiler middleware in ' - 'glance, it is specified in paste ' + 'glance, it is specified in glance ' 'configuration file at ' - '/etc/glance/api-paste.ini and ' - '/etc/glance/registry-paste.ini. Without key ' - 'the profiling will not be triggered even ' - 'if osprofiler is enabled on server side.') + '/etc/glance/glance-api.conf and ' + '/etc/glance/glance-registry.conf. Without ' + 'key the profiling will not be triggered even ' + 'if osprofiler is enabled on server side. ' + 'Defaults to env[OS_PROFILE].') self._append_global_identity_args(parser, argv) |
