From da86f2b9746ffcb12b2d2aa4e4c2c171134b6ce1 Mon Sep 17 00:00:00 2001 From: kogeler Date: Mon, 22 Jul 2024 21:08:24 +0300 Subject: [PATCH 1/2] fix http response in exporter for node-backup role --- roles/node_backup/files/exporter.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/roles/node_backup/files/exporter.py b/roles/node_backup/files/exporter.py index 338263f..077bba1 100644 --- a/roles/node_backup/files/exporter.py +++ b/roles/node_backup/files/exporter.py @@ -121,11 +121,6 @@ def log_message(self, format, *args): message = f"{self.address_string()} {format % args}" logging.info(message) - def _set_headers(self): - self.send_response(200) - self.send_header('Content-type', 'application/json; charset=utf-8') - self.end_headers() - def do_POST(self): if self.headers.get('Content-Type') != 'application/json': @@ -140,8 +135,8 @@ def do_POST(self): set_metrics(json.loads(data)) self.send_response(200) - - self._set_headers() + self.send_header('Content-type', 'application/json; charset=utf-8') + self.end_headers() self.wfile.write(json.dumps({"status": "OK"}).encode("utf8")) except json.decoder.JSONDecodeError as e: tb_output = io.StringIO() From c43657e179613c5794ef9c88750417c88e76d964 Mon Sep 17 00:00:00 2001 From: kogeler Date: Mon, 22 Jul 2024 21:59:18 +0300 Subject: [PATCH 2/2] fix galaxy version --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index 81e1d6c..13c012f 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: paritytech name: chain # The version of the collection. Must be compatible with semantic versioning -version: 1.10.0 +version: 1.10.2 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md