Skip to content
Snippets Groups Projects
Commit f65415af authored by garciadeblas's avatar garciadeblas
Browse files

Fix cluster-get-credentials to read op_id


Change-Id: I18fbdcd6bbe90c1a4239d0321997acef1731993a
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 57166c34
No related branches found
No related tags found
No related merge requests found
Pipeline #17297 passed with stage
in 3 minutes and 33 seconds
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment