We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Tags
1 parent 7d2c2b4 commit b1b820aCopy full SHA for b1b820a
aws_lambda/aws_lambda.py
@@ -641,8 +641,9 @@ def update_function(
641
for key, value in cfg.get('tags').items()
642
}
643
if tags != existing_cfg.get('Tags'):
644
- client.untag_resource(Resource=ret['FunctionArn'],
645
- TagKeys=list(existing_cfg['Tags'].keys()))
+ if existing_cfg.get('Tags'):
+ client.untag_resource(Resource=ret['FunctionArn'],
646
+ TagKeys=list(existing_cfg['Tags'].keys()))
647
client.tag_resource(Resource=ret['FunctionArn'], Tags=tags)
648
649
0 commit comments