v1.1.26: handle empty validate-cfs response (JSONDecodeError)
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user