File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ def lambda_handler(event, context={}):
427
427
sns_boto .publish (error_sns_arn , 'Error in processing volumes: ' + backup_mgr .errmsg , 'Error with AWS Snapshot' )
428
428
429
429
if sns_arn :
430
- sns_boto .publish (sns_arn , backup_mgr .message , 'Finished AWS EC2 snapshotting' )
430
+ sns_boto .publish (TopicArn = sns_arn , Message = backup_mgr .message , Subject = 'Finished AWS EC2 snapshotting' )
431
431
432
432
if rds_region_name :
433
433
backup_mgr = RDSBackupManager (rds_region_name = rds_region_name ,
@@ -446,6 +446,6 @@ def lambda_handler(event, context={}):
446
446
sns_boto .publish (error_sns_arn , 'Error in processing RDS: ' + backup_mgr .errmsg , 'Error with AWS Snapshot' )
447
447
448
448
if sns_arn :
449
- sns_boto .publish (sns_arn , backup_mgr .message , 'Finished AWS RDS snapshotting' )
449
+ sns_boto .publish (TopicArn = sns_arn , Message = backup_mgr .message , Subject = 'Finished AWS RDS snapshotting' )
450
450
451
451
return json .dumps (result , indent = 2 )
You can’t perform that action at this time.
0 commit comments