From f65415af44dc969df4f27022c7b80a4a48894f11 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 15 Nov 2024 12:00:06 +0100 Subject: [PATCH] Fix cluster-get-credentials to read op_id Change-Id: I18fbdcd6bbe90c1a4239d0321997acef1731993a Signed-off-by: garciadeblas --- osmclient/sol005/cluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osmclient/sol005/cluster.py b/osmclient/sol005/cluster.py index 3225763..8aa4b28 100644 --- a/osmclient/sol005/cluster.py +++ b/osmclient/sol005/cluster.py @@ -72,7 +72,8 @@ class Cluster(GenericOSMAPIObject): try: _, resp = self._http.get2_cmd(f"{self._apiBase}/{item['_id']}/get_creds") if resp: - op_id = json.loads(resp) + resp = json.loads(resp) + op_id = resp["op_id"] # Wait loop to check if the operation completed result = self.wait_for_operation_status(item["_id"], 10, op_id) if result: -- 2.25.1