Skip to content

Commit

Permalink
Use double quotes to satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhorning committed Oct 19, 2023
1 parent 3652c49 commit 5857cd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/elasticache.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,15 +342,15 @@ def modify(self):
self._wait_for_status("available")

def apply_tags(self):
cluster_arn = self.data['ARN']
cluster_arn = self.data["ARN"]
tags = self.tags

resp = self.conn.list_tags_for_resource(ResourceName=cluster_arn)
existing_tags = resp['TagList']
existing_tags = resp["TagList"]
if existing_tags:
if tags != existing_tags:
if self.purge_tags:
keys = [item['Key'] for item in existing_tags]
keys = [item["Key"] for item in existing_tags]
# simply remove all existing tags here, as we will re-add tags from module input below anyways
self.conn.remove_tags_from_resource(ResourceName=cluster_arn, TagKeys=keys)
self.conn.add_tags_to_resource(ResourceName=cluster_arn, Tags=tags)
Expand Down

0 comments on commit 5857cd4

Please sign in to comment.