test: fix unknown parameter hostid in test_vm_life_cycle.py (#8948)

This commit is contained in:
Wei Zhou 2024-04-24 08:59:33 +02:00 committed by GitHub
parent 96ae479000
commit 6def370f4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1035,7 +1035,7 @@ class TestSecuredVmMigration(cloudstackTestCase):
time.sleep(interval) time.sleep(interval)
restarted_host = Host.list( restarted_host = Host.list(
cls.apiclient, cls.apiclient,
hostid=host.id, id=host.id,
type='Routing' type='Routing'
)[0] )[0]
if restarted_host.state == "Up": if restarted_host.state == "Up":
@ -1100,7 +1100,7 @@ class TestSecuredVmMigration(cloudstackTestCase):
time.sleep(interval) time.sleep(interval)
host = Host.list( host = Host.list(
self.apiclient, self.apiclient,
hostid=hostId, id=hostId,
type='Routing' type='Routing'
)[0] )[0]
if host.state != state: if host.state != state:
@ -1160,7 +1160,7 @@ class TestSecuredVmMigration(cloudstackTestCase):
host = Host.list( host = Host.list(
self.apiclient, self.apiclient,
zoneid=self.zone.id, zoneid=self.zone.id,
hostid=host.id, id=host.id,
type='Routing' type='Routing'
)[0] )[0]
if host.details.secured != secured: if host.details.secured != secured: