summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabi Mishra <ramishra@redhat.com>2019-02-16 02:37:07 +0530
committerRabi Mishra <ramishra@redhat.com>2019-02-21 07:06:49 +0000
commitb4b6a94e72028a08bd9e4d7a2816a4c31f4ee4f8 (patch)
tree453291a79094866922280cf38297251715806003
parentfd369845b7fbda13478da66262819edee45648ad (diff)
downloadheat-b4b6a94e72028a08bd9e4d7a2816a4c31f4ee4f8.tar.gz
Don't translate event reason when adding hook event
We don't seem to do it anywhere else. TripleO uses hook reason string comparsion which does not work if internationalized. Story: #2005035 Task: 29524 Change-Id: I3e8f4587966969084cbf1e38406cd3cff23eb9a6 (cherry picked from commit 1cd8ce37c038ed79371da60527de35bb75bdfab5)
-rw-r--r--heat/engine/resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/engine/resource.py b/heat/engine/resource.py
index b964805d0..215b89a41 100644
--- a/heat/engine/resource.py
+++ b/heat/engine/resource.py
@@ -543,7 +543,7 @@ class Resource(status.ResourceStatus):
if self.stack.env.registry.matches_hook(self.name, hook):
self.trigger_hook(hook)
self._add_event(self.action, self.status,
- _("%(a)s paused until Hook %(h)s is cleared")
+ "%(a)s paused until Hook %(h)s is cleared"
% {'a': action, 'h': hook})
LOG.info('Reached hook on %s', self)