v1.1.26: handle empty validate-cfs response (JSONDecodeError)

This commit is contained in:
2026-07-29 13:24:00 +04:00
parent ed6612fb3c
commit 8cc7f54b23
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -345,8 +345,14 @@ def _send_params_terraform(client, op_uid, params):
"svcOperationCfsParamId": pid,
"paramValue": val
})
# Шаг 7: validate-cfs (ошибка НЕ глотается — возвращается вызывающему)
client.get(f"/instanceOperations/{op_uid}/validate-cfs")
# Шаг 7: validate-cfs (пустой ответ = успех)
try:
client.get(f"/instanceOperations/{op_uid}/validate-cfs")
except Exception as e:
if "Expecting value" in str(e) or "JSON" in str(type(e).__name__):
pass # пустой ответ = OK
else:
raise
def _cleanup_op_results():