mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
refactor(instances): the VM list calls refresh_instance_database itself
instances.utils.refr() only imported and called computes.utils.refresh_instance_database(); the views import it directly, as they import its siblings from computes.utils. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
e554390ddf
commit
496d3a48ad
15 changed files with 29 additions and 35 deletions
|
|
@ -29,7 +29,7 @@ from operations.models import Operation
|
|||
from vrtManager.tests import livetest
|
||||
from .test_create_instance import run
|
||||
from instances.models import Instance
|
||||
from instances.utils import refr
|
||||
from computes.utils import refresh_instance_database
|
||||
|
||||
P = livetest.PREFIX
|
||||
BOOT_TIMEOUT = 300
|
||||
|
|
@ -132,7 +132,7 @@ class LiveGuestTestCase(TestCase):
|
|||
<serial type='pty'/>
|
||||
</devices>
|
||||
</domain>""")
|
||||
refr(self.compute)
|
||||
refresh_instance_database(self.compute)
|
||||
return dom, Instance.objects.get(compute=self.compute, uuid=dom.UUIDString())
|
||||
|
||||
def start(self, dom):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue