summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-02-24 01:04:35 +0000
committerGerrit Code Review <review@openstack.org>2015-02-24 01:04:35 +0000
commitc83aa109df9963a368eaa4703f267a14f33ea3a2 (patch)
treee8ea38178cc64952b24f53b3d5aa1abb114a555e
parent51aa1a8dbd1b45e6abdaf571d1d73a6d7405fd3a (diff)
parent740379da939ee9d71511d6a56e13ae01060316fb (diff)
downloadpython-troveclient-c83aa109df9963a368eaa4703f267a14f33ea3a2.tar.gz
Merge "Fix grammatical errors in profiler messages"
-rw-r--r--troveclient/shell.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/troveclient/shell.py b/troveclient/shell.py
index ecdf539..3c7dfd8 100644
--- a/troveclient/shell.py
+++ b/troveclient/shell.py
@@ -186,15 +186,14 @@ class OpenStackTroveShell(object):
metavar='HMAC_KEY',
default=utils.env('OS_PROFILE_HMACKEY',
default=None),
- 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 '
- 'Trove, it is specified in paste '
- 'configure file at /etc/trove/api-paste.ini. '
- 'Without key the profiling will not be '
- 'triggered even if osprofiler is enabled '
- 'on server side. '
+ help='HMAC key used to encrypt context '
+ 'data when profiling the performance of an '
+ 'operation. This key should be set to one of '
+ 'the HMAC keys configured in Trove (they are '
+ 'found in api-paste.ini, typically in '
+ '/etc/trove). Without the key, profiling '
+ 'will not be triggered even if it is enabled '
+ 'on the server side. '
'Defaults to env[OS_PROFILE_HMACKEY].')
self._append_global_identity_args(parser)
@@ -546,7 +545,7 @@ class OpenStackTroveShell(object):
if profile:
trace_id = osprofiler_profiler.get().get_base_id()
print("Trace ID: %s" % trace_id)
- print("To display trace use next command:\n"
+ print("To display the trace, use the following command:\n"
"osprofiler trace show --html %s" % trace_id)
def _run_extension_hooks(self, hook_type, *args, **kwargs):