mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
chore(computes): remove the unrouted video models view
computes.views.get_compute_video_models had no URL and no caller, and ComputeManager.get_video_models was used only by it. The video models of the create page and the VM settings come from wvmConnect directly.
This commit is contained in:
parent
5c4eb97410
commit
026391907a
1 changed files with 0 additions and 21 deletions
|
|
@ -164,18 +164,6 @@ def get_compute_machine_types(request, compute_id, arch):
|
|||
return HttpResponse(comp_mgr.get_machine_types(arch), content_type="application/json")
|
||||
|
||||
|
||||
def get_compute_video_models(request, compute_id, arch, machine):
|
||||
"""
|
||||
:param request:
|
||||
:param compute_id:
|
||||
:param arch:
|
||||
:param machine:
|
||||
:return:
|
||||
"""
|
||||
comp_mgr = ComputeManager(compute_id)
|
||||
return HttpResponse(comp_mgr.get_video_models(arch, machine), content_type="application/json")
|
||||
|
||||
|
||||
def get_dom_capabilities(request, compute_id, arch, machine):
|
||||
"""
|
||||
:param request:
|
||||
|
|
@ -198,15 +186,6 @@ class ComputeManager:
|
|||
self.compute.type,
|
||||
)
|
||||
|
||||
def get_video_models(self, arch, machine):
|
||||
data = dict()
|
||||
try:
|
||||
data["videos"] = self.conn.get_video_models(arch, machine)
|
||||
except libvirtError:
|
||||
pass
|
||||
|
||||
return json.dumps(data)
|
||||
|
||||
def get_dom_capabilities(self, arch, machine):
|
||||
data = dict()
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue