Igor Serko

S3 Event Source Status fix

The CLI expects to see `EventSourceArn` and `State` in the result from the `status` method in each event_source. This makes it work for the S3 event sources
...@@ -92,5 +92,8 @@ class S3EventSource(kappa.event_source.base.EventSource): ...@@ -92,5 +92,8 @@ class S3EventSource(kappa.event_source.base.EventSource):
92 Bucket=self._get_bucket_name()) 92 Bucket=self._get_bucket_name())
93 LOG.debug(response) 93 LOG.debug(response)
94 if 'CloudFunctionConfiguration' not in response: 94 if 'CloudFunctionConfiguration' not in response:
95 - response = None 95 + return None
96 - return response 96 + return {
97 + 'EventSourceArn': response['CloudFunctionConfiguration']['CloudFunction'],
98 + 'State': 'Enabled'
99 + }
......