Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix detection of existing tags when updating a function. Tags key i…
…s not present if there are no existing tags
  • Loading branch information
Scot Kronenfeld committed Mar 6, 2018
commit 7d2c2b44bb2a2dcbfa2834baf0239de567acfbf8
2 changes: 1 addition & 1 deletion aws_lambda/aws_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def update_function(
key: str(value)
for key, value in cfg.get('tags').items()
}
if tags != existing_cfg['Tags']:
if tags != existing_cfg.get('Tags'):
client.untag_resource(Resource=ret['FunctionArn'],
TagKeys=list(existing_cfg['Tags'].keys()))
client.tag_resource(Resource=ret['FunctionArn'], Tags=tags)
Expand Down