Merge "SignalResponder move signed URL deleting to its own method"

This commit is contained in:
Jenkins 2014-02-28 03:55:07 +00:00 committed by Gerrit Code Review
commit 0936135169

View File

@ -49,10 +49,13 @@ class SignalResponder(stack_user.StackUser):
def handle_delete(self): def handle_delete(self):
super(SignalResponder, self).handle_delete() super(SignalResponder, self).handle_delete()
self._delete_signed_url()
def _delete_signed_url(self):
try: try:
db_api.resource_data_delete(self, 'ec2_signed_url') db_api.resource_data_delete(self, 'ec2_signed_url')
except exception.NotFound: except exception.NotFound:
pass pass
def _get_signed_url(self, signal_type=SIGNAL): def _get_signed_url(self, signal_type=SIGNAL):
"""Create properly formatted and pre-signed URL. """Create properly formatted and pre-signed URL.