change HTTP method to comply with spec (#9100)

There is discrepancy with the spec, it has PUT
This commit is contained in:
Nikita Kalyanov
2024-09-23 16:53:06 +03:00
committed by GitHub
parent 4d5add9ca0
commit f446e08fb8
5 changed files with 5 additions and 5 deletions

View File

@@ -631,7 +631,7 @@ class PageserverHttpClient(requests.Session, MetricsGetter):
log.info(
f"requesting timeline archival config {config} for tenant {tenant_id} and timeline {timeline_id}"
)
res = self.post(
res = self.put(
f"http://localhost:{self.port}/v1/tenant/{tenant_id}/timeline/{timeline_id}/archival_config",
json=config,
)