Skip to content

Commit

Permalink
Merge pull request #10 from vrtdev/fix/aws-backup
Browse files Browse the repository at this point in the history
fix BackupPlanId (bugfix)
  • Loading branch information
MarioVerbelen authored Feb 14, 2019
2 parents 787b988 + 4d9da89 commit 22f3809
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lambda_code/backup/BackupSelection/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def validate(self):
self.backup_plan_id = self.resource_properties['BackupPlanId']
self.backup_selection = self.resource_properties['BackupSelection']


def create(self):
bu = self.get_boto3_client('backup')

Expand All @@ -42,7 +41,7 @@ def update(self):
def delete(self):
bu = self.get_boto3_client('backup')
try:
bu.delete_backup_selection(BackupPlanId=self.backup_selection, SelectionId=self.physical_resource_id)
bu.delete_backup_selection(BackupPlanId=self.backup_plan_id, SelectionId=self.physical_resource_id)
except (bu.exceptions.ResourceNotFoundException,
bu.exceptions.InvalidParameterException):
# Assume already deleted
Expand Down

0 comments on commit 22f3809

Please sign in to comment.