Toggle navigation
Toggle navigation
This project
Loading...
Sign in
서승완
/
kappa
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Mitch Garnaat
2015-01-07 20:18:08 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3e4723b8e544890795e263437f33e00b08d4c1f3
3e4723b8
1 parent
24b636bf
Fixing a few things landscape.io found.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
kappa/event_source.py
kappa/event_source.py
View file @
3e4723b
...
...
@@ -54,7 +54,7 @@ class KinesisEventSource(EventSource):
try
:
response
=
self
.
_lambda
.
add_event_source
(
FunctionName
=
function
.
name
,
Role
=
self
.
invoke_role_arn
,
Role
=
self
.
_context
.
invoke_role_arn
,
EventSource
=
self
.
arn
,
BatchSize
=
self
.
batch_size
)
LOG
.
debug
(
response
)
...
...
@@ -88,9 +88,9 @@ class S3EventSource(EventSource):
notification_spec
=
{
'CloudFunctionConfiguration'
:
{
'Id'
:
self
.
_make_notification_id
(
function
.
name
),
'Events'
:
[
e
for
e
in
self
.
config
[
'events'
]],
'Events'
:
[
e
for
e
in
self
.
_
config
[
'events'
]],
'CloudFunction'
:
function
.
arn
(),
'InvocationRole'
:
self
.
invoke_role_arn
}}
'InvocationRole'
:
self
.
_context
.
invoke_role_arn
}}
try
:
response
=
self
.
_s3
.
put_bucket_notification
(
Bucket
=
self
.
_get_bucket_name
(),
...
...
Please
register
or
login
to post a comment