Committed by
GitHub
Merge pull request #77 from iserko/fix_s3_event_source_status
S3 Event Source Status fix
Showing
1 changed file
with
5 additions
and
2 deletions
... | @@ -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 | + } | ... | ... |
-
Please register or login to post a comment