Fix grammatical errors in profiler messages
While testing the osprofiler code, certain grammatical inconsistencies were found in the help/messages. These have been fixed. Change-Id: Ia0b81870e15a9bc118bcaa81e698ef0e44c96f94
This commit is contained in:
@@ -186,15 +186,14 @@ class OpenStackTroveShell(object):
|
|||||||
metavar='HMAC_KEY',
|
metavar='HMAC_KEY',
|
||||||
default=utils.env('OS_PROFILE_HMACKEY',
|
default=utils.env('OS_PROFILE_HMACKEY',
|
||||||
default=None),
|
default=None),
|
||||||
help='HMAC key to use for encrypting context '
|
help='HMAC key used to encrypt context '
|
||||||
'data for performance profiling of operation. '
|
'data when profiling the performance of an '
|
||||||
'This key should be the value of HMAC key '
|
'operation. This key should be set to one of '
|
||||||
'configured in osprofiler middleware in '
|
'the HMAC keys configured in Trove (they are '
|
||||||
'Trove, it is specified in paste '
|
'found in api-paste.ini, typically in '
|
||||||
'configure file at /etc/trove/api-paste.ini. '
|
'/etc/trove). Without the key, profiling '
|
||||||
'Without key the profiling will not be '
|
'will not be triggered even if it is enabled '
|
||||||
'triggered even if osprofiler is enabled '
|
'on the server side. '
|
||||||
'on server side. '
|
|
||||||
'Defaults to env[OS_PROFILE_HMACKEY].')
|
'Defaults to env[OS_PROFILE_HMACKEY].')
|
||||||
|
|
||||||
self._append_global_identity_args(parser)
|
self._append_global_identity_args(parser)
|
||||||
@@ -546,7 +545,7 @@ class OpenStackTroveShell(object):
|
|||||||
if profile:
|
if profile:
|
||||||
trace_id = osprofiler_profiler.get().get_base_id()
|
trace_id = osprofiler_profiler.get().get_base_id()
|
||||||
print("Trace ID: %s" % trace_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)
|
"osprofiler trace show --html %s" % trace_id)
|
||||||
|
|
||||||
def _run_extension_hooks(self, hook_type, *args, **kwargs):
|
def _run_extension_hooks(self, hook_type, *args, **kwargs):
|
||||||
|
Reference in New Issue
Block a user