Matteo Sessa

4-space indentation fix

......@@ -44,12 +44,12 @@ class S3EventSource(kappa.event_source.base.EventSource):
# Add S3 key filters
if 'key_filters' in self._config:
filters_spec = { 'Key' : { 'FilterRules' : [] } }
for filter in self._config['key_filters']:
if 'type' in filter and 'value' in filter and filter['type'] in ('prefix', 'suffix'):
rule = { 'Name' : filter['type'], 'Value' : filter['value'] }
filters_spec['Key']['FilterRules'].append(rule)
notification_spec['LambdaFunctionConfigurations'][0]['Filter'] = filters_spec
filters_spec = { 'Key' : { 'FilterRules' : [] } }
for filter in self._config['key_filters']:
if 'type' in filter and 'value' in filter and filter['type'] in ('prefix', 'suffix'):
rule = { 'Name' : filter['type'], 'Value' : filter['value'] }
filters_spec['Key']['FilterRules'].append(rule)
notification_spec['LambdaFunctionConfigurations'][0]['Filter'] = filters_spec
try:
response = self._s3.call(
......