File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -354,12 +354,12 @@ def create_function(cfg, path_to_zip_file):
354354 client = get_client ('lambda' , aws_access_key_id , aws_secret_access_key ,
355355 cfg .get ('region' ))
356356
357- #Do we prefer development variable over config?
357+ # Do we prefer development variable over config?
358358 func_name = (
359359 os .environ .get ('LAMBDA_FUNCTION_NAME' ) or cfg .get ('function_name' )
360360 )
361361 print ('Creating lambda function with name: {}' .format (func_name ))
362- kwargs = {
362+ kwargs = {
363363 'FunctionName' : func_name ,
364364 'Runtime' : cfg .get ('runtime' , 'python2.7' ),
365365 'Role' : role ,
@@ -373,7 +373,7 @@ def create_function(cfg, path_to_zip_file):
373373
374374 if 'environment_variables' in cfg :
375375 kwargs .update (
376- Environment = {
376+ Environment = {
377377 'Variables' : {
378378 key : value
379379 for key , value
@@ -382,7 +382,8 @@ def create_function(cfg, path_to_zip_file):
382382 }
383383 )
384384
385- client .create_function ( ** kwargs )
385+ client .create_function (** kwargs )
386+
386387
387388def update_function (cfg , path_to_zip_file ):
388389 """Updates the code of an existing Lambda function"""
You can’t perform that action at this time.
0 commit comments