delete queue messages for which there was no playbook
authorJustin Wind <j.wind@partner.samsung.com>
Fri, 10 Mar 2017 17:44:46 +0000 (09:44 -0800)
committerJustin Wind <j.wind@partner.samsung.com>
Fri, 10 Mar 2017 17:44:46 +0000 (09:44 -0800)
sqs-action.py

index f092fd76b99dcb8d8c43abcf647933fee61bea5d..a71d01d003620f8817793737bf6372d61758728c 100755 (executable)
@@ -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))