We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5925a7 + 5655e50 commit 48e1e06Copy full SHA for 48e1e06
app/api/controllers/container.py
@@ -56,7 +56,7 @@ def createContainer():
56
@jwt_required
57
def updateContainer():
58
input = request.get_json(silent=True)
59
- validation = doValidate(input)
+ validation = doValidate(input, LXDModule().setLimitsCPU())
60
if validation:
61
return response.reply(message=validation.message, status=403)
62
app/api/schemas/container_schema.py
@@ -227,7 +227,7 @@ def doValidateCloneMove(input):
227
except ValidationError as e:
228
return e
229
230
-def doValidate(input, setCPU):
+def doValidate(input, setCPU = False):
231
try:
232
if setCPU:
233
validate(input, set_cpu_limit_schema)
0 commit comments