Ryan S. Brown

Fix call to add_event_source

......@@ -55,8 +55,8 @@ def main(config=None, debug=False, command=None):
ctx.delete()
click.echo('...done')
elif command == 'add-event-source':
click.echo('Adding event source ...')
ctx.add_event_source()
click.echo('Adding event sources ...')
ctx.add_event_sources()
click.echo('...done')
......
......@@ -89,7 +89,7 @@ class S3EventSource(EventSource):
'CloudFunctionConfiguration': {
'Id': self._make_notification_id(function.name),
'Events': [e for e in self._config['events']],
'CloudFunction': function.arn(),
'CloudFunction': function.arn,
'InvocationRole': self._context.invoke_role_arn}}
try:
response = self._s3.put_bucket_notification(
......