Skip to content

Commit

Permalink
feat: add finalizer response
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoataoldotcom authored Mar 29, 2023
1 parent b89e681 commit acbda12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ def do_POST(self):
rule_name=rule_group_namespace,
rule_namespace=rule_group_namespace
)
response_data = {
"finalized": response.ok
}
self.send_response(200)
self.send_header('Content-Type', 'application/json')
self.end_headers()
self.wfile.write(json.dumps(response_data).encode('utf-8'))
else:
# Sync the object with the external API
response = create_or_update_alerting_rule_group(
Expand Down

0 comments on commit acbda12

Please sign in to comment.