diff --git a/deploy-sam-template.sh b/deploy-sam-template.sh index 79364b4..1954f98 100755 --- a/deploy-sam-template.sh +++ b/deploy-sam-template.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -SHELVERY_VERSION=0.9.11 +SHELVERY_VERSION=0.9.12 # set DOCKERUSERID to current user. could be changed with -u uid DOCKERUSERID="-u $(id -u)" diff --git a/setup.py b/setup.py index d98abca..5f5f66e 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup -setup(name='shelvery', version='0.9.11', author='Base2Services R&D', +setup(name='shelvery', version='0.9.12', author='Base2Services R&D', author_email='itsupport@base2services.com', url='http://github.com/base2Services/shelvery-aws-backups', classifiers=[ diff --git a/shelvery/__init__.py b/shelvery/__init__.py index 19442df..5b69211 100644 --- a/shelvery/__init__.py +++ b/shelvery/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.9.11' +__version__ = '0.9.12' LAMBDA_WAIT_ITERATION = 'lambda_wait_iteration' S3_DATA_PREFIX = 'backups' SHELVERY_DO_BACKUP_TAGS = ['True', 'true', '1', 'TRUE'] diff --git a/shelvery/documentdb_backup.py b/shelvery/documentdb_backup.py index acc4ab2..8d8ab4f 100644 --- a/shelvery/documentdb_backup.py +++ b/shelvery/documentdb_backup.py @@ -144,7 +144,7 @@ def copy_shared_backup(self, source_account: str, source_backup: BackupResource) copy_kms_key = RuntimeConfig.get_copy_kms_key_id(source_backup.tags, self) # if a new key is provided by config encypt the copy with the new kms key - if copy_kms_key is not None: + if copy_kms_key: self.logger.info( f"Snapshot {source_backup.backup_id} will be copied and encrypted with the kms key {copy_kms_key}") kms_key = copy_kms_key diff --git a/template.yaml b/template.yaml index 6a85f0e..8183617 100644 --- a/template.yaml +++ b/template.yaml @@ -122,7 +122,7 @@ Resources: Tags: Name: Shelvery CreatedBy: Shelvery - ShelveryVersion: 0.9.11 + ShelveryVersion: 0.9.12 Environment: Variables: