Skip to content

Commit

Permalink
Use radl 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 28, 2024
1 parent 650b69e commit 8a6ddad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def managevm(op=None, infid=None, vmid=None):
vminfo.systems[0].addFeature(Feature("cpu.count", ">=", cpu),
conflict="other", missing="other")
vminfo.systems[0].delValue("memory.size")
vminfo.systems[0].addFeature(Feature("memory.size", ">=", memory, "GB"),
vminfo.systems[0].addFeature(Feature("memory.size", ">=", memory, "GiB"),
conflict="other", missing="other")
if gpu > 0:
vminfo.systems[0].delValue("gpu.count")
Expand All @@ -417,7 +417,7 @@ def managevm(op=None, infid=None, vmid=None):
if disk_size > 0:
vminfo.systems[0].delValue("disks.free_size")
vminfo.systems[0].delValue("disks.0.free_size")
vminfo.systems[0].addFeature(Feature("disks.free_size", ">=", disk_size, "GB"),
vminfo.systems[0].addFeature(Feature("disks.free_size", ">=", disk_size, "GiB"),
conflict="other", missing="other")
response = im.resize_vm(infid, vmid, str(vminfo), auth_data)
else:
Expand Down
2 changes: 1 addition & 1 deletion app/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_response(url, params=None, **kwargs):
elif url == "/im/infrastructures/infid/vms/0":
resp.ok = True
resp.status_code = 200
resp.text = "system front (cpu.count = 1 and memory.size = 512 MB)"
resp.text = "system front (cpu.count = 1 and memory.size = 512 MiB)"
radl = {"class": "system",
"cpu.arch": "x86_64",
"cpu.count_min": 1,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requests==2.32.2
PyYAML==6.0.2
packaging==24.1
xmltodict==0.13.0
radl==1.3.2
radl==1.3.4
cryptography==43.0.1
apscheduler==3.10.4 # 3.8.1 version fails
Flask-APScheduler==1.13.1
Expand Down

0 comments on commit 8a6ddad

Please sign in to comment.