Update certificates endpoint after microcluster update

The certificates endpoint changed when migrating to microcluster TLS.

Change-Id: I6aa2159b1dd25935e257dc804d255b044f0be21f
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
This commit is contained in:
Guillaume Boutry
2024-10-02 13:51:13 +02:00
parent 0cc6521539
commit a72d0c5a10

View File

@@ -188,7 +188,5 @@ class ClusterdClient:
This is because we don't want microcluster to go full CA-mode.
"""
self._put("/1.0/config/cluster-ca", data=ca)
data = {"public_key": cert, "private_key": key}
self._put(
"/cluster/internal/cluster/certificates", data=json.dumps(data)
)
data = {"cert": cert, "key": key}
self._put("/core/1.0/cluster/certificates/cluster", json=data)