Fix: instanceOperationUid in params, add validate, v1.0.25
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ from routes.main import bp as main_bp
|
||||
from routes.api import bp as api_bp
|
||||
from routes.api_test import bp as api_test_bp
|
||||
|
||||
VERSION = "1.0.24"
|
||||
VERSION = "1.0.25"
|
||||
|
||||
app = Flask(__name__, template_folder="templates", static_folder="static")
|
||||
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc")
|
||||
|
||||
@@ -104,7 +104,8 @@ def api_test():
|
||||
# задать cfsParams
|
||||
for pid, pval in params.items():
|
||||
client.post(f"/instanceOperations/{op_uid}/params",
|
||||
{"svcOperationCfsParamId": int(pid), "paramValue": str(pval)})
|
||||
{"instanceOperationUid": op_uid, "svcOperationCfsParamId": int(pid), "paramValue": str(pval)})
|
||||
client.post(f"/instanceOperations/{op_uid}/validate")
|
||||
client.post(f"/instanceOperations/{op_uid}/run")
|
||||
|
||||
# wait
|
||||
|
||||
Reference in New Issue
Block a user