Skip to content

Commit 6796d14

Browse files
committed
linting
1 parent 2bc7256 commit 6796d14

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

aws_lambda/aws_lambda.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

387388
def update_function(cfg, path_to_zip_file):
388389
"""Updates the code of an existing Lambda function"""

0 commit comments

Comments
 (0)