From 765f61619de7f61a8fbe297ea8099e35f0216ea2 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 14 Aug 2014 17:02:32 -0700 Subject: [PATCH] Put result in quotes When a result is the empty string is is hard/confusing to look at the logs and determine what the task result was, to avoid this put the result in quotes so that it is clear in the log message what is the result and what is not. Change-Id: I6f9c30e30999dcd8d7f0df26f8066d9f392fe1b9 --- cinder/flow_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/flow_utils.py b/cinder/flow_utils.py index c5816c883..d10ef4894 100644 --- a/cinder/flow_utils.py +++ b/cinder/flow_utils.py @@ -107,7 +107,7 @@ class DynamicLogListener(base_listener.ListenerBase): self._logger.log(level, _("Task '%(task_name)s' (%(task_uuid)s)" " transitioned into state '%(state)s'" - " with result %(result)s") % + " with result '%(result)s'") % {'task_name': details['task_name'], 'task_uuid': details['task_uuid'], 'state': state, 'result': result}) -- 2.45.2