From 8b727e352fca48c0514d9a15138fc4749cf72480 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Fri, 14 Feb 2014 08:48:52 +1300 Subject: [PATCH] SignalResponder move signed URL deleting to its own method Subclasses may not be handling this in their handle_delete methods Change-Id: I3dbb89e0a86690617613b25c9533bbf52d1da8a9 --- heat/engine/signal_responder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/heat/engine/signal_responder.py b/heat/engine/signal_responder.py index 8e7a03f32..979371dfc 100644 --- a/heat/engine/signal_responder.py +++ b/heat/engine/signal_responder.py @@ -49,10 +49,13 @@ class SignalResponder(stack_user.StackUser): def handle_delete(self): super(SignalResponder, self).handle_delete() + self._delete_signed_url() + + def _delete_signed_url(self): try: db_api.resource_data_delete(self, 'ec2_signed_url') except exception.NotFound: - pass + pass def _get_signed_url(self, signal_type=SIGNAL): """Create properly formatted and pre-signed URL.