Skip to content

Commit

Permalink
Fixing problem with AWS managed tags (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrt committed Jan 30, 2020
1 parent 01de007 commit 803dd20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.2.3

- Again fixing a problem with AWS tags

## 1.2.2

- Fixing a problem with AWS tags (can't copy AWS tags)
Expand Down
4 changes: 2 additions & 2 deletions ec2cryptomatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import boto3
from botocore.exceptions import ClientError, EndpointConnectionError

__version__ = '1.2.2'
__version__ = '1.2.3'

# Define the global logger
LOGGER = logging.getLogger('ec2-cryptomatic')
Expand Down Expand Up @@ -137,7 +137,7 @@ def _create_volume(self, snapshot, original_device):
# So, we have to filter AWS managed tags (ex: CloudFormation tags)
valid_tags = [tag for tag in original_device.tags if not tag['Key'].startswith('aws:')]
if valid_tags:
volume.create_tags(Tags=original_device.tags)
volume.create_tags(Tags=valid_tags)

return volume

Expand Down

0 comments on commit 803dd20

Please sign in to comment.