From 93faadc586acb82d42c7af9ea12951074c33dd87 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Fri, 10 Mar 2017 09:44:46 -0800 Subject: [PATCH] delete queue messages for which there was no playbook --- sqs-action.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sqs-action.py b/sqs-action.py index f092fd7..a71d01d 100755 --- a/sqs-action.py +++ b/sqs-action.py @@ -43,6 +43,7 @@ def handleEvent(message, event, ASGName, InstanceId): message.delete() else: notice += ['no action taken: no playbook for this ASG'] + message.delete() notify(notice[0], '\n'.join(notice)) -- 2.45.2