Ryan S. Brown

`update_event_sources` fails on SNS and S3 event sources

Per https://github.com/garnaat/kappa/issues/32 , adding an update method
for event sources that don't have them.
......@@ -144,6 +144,9 @@ class S3EventSource(EventSource):
except Exception:
LOG.exception('Unable to add S3 event source')
def update(self, function):
self.add(function)
def remove(self, function):
LOG.debug('removing s3 notification')
response = self._s3.get_bucket_notification(
......@@ -200,6 +203,9 @@ class SNSEventSource(EventSource):
except Exception:
LOG.exception('Unable to add SNS event source')
def update(self, function):
self.add(function)
def remove(self, function):
LOG.debug('removing SNS event source')
try:
......