Fix incorrect response for put-targets action (#3037)

This commit is contained in:
Victor Le Fichant 2020-06-02 17:31:42 +02:00 committed by GitHub
commit cb600377b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 1 deletions

View file

@ -217,7 +217,10 @@ class EventsHandler(BaseResponse):
"ResourceNotFoundException", "Rule " + rule_name + " does not exist."
)
return "", self.response_headers
return (
json.dumps({"FailedEntryCount": 0, "FailedEntries": []}),
self.response_headers,
)
def remove_targets(self):
rule_name = self._get_param("Rule")