Skip to content

Commit c976cbe

Browse files
committed
get_vdi_sr_uuid: fix intermediate-style call
In 0a5ea64 the method was moved from BaseVM to Pool, but an intermediate version had it moved to Host, and the final version missed the conversion on one call site, breaking tune_firstboot tests. Signed-off-by: Yann Dirson <[email protected]>
1 parent 2230ce8 commit c976cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vdi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self, uuid, *, host=None, sr=None):
99
self.uuid = uuid
1010
# TODO: use a different approach when migration is possible
1111
if sr is None:
12-
sr_uuid = host.get_vdi_sr_uuid(uuid)
12+
sr_uuid = host.pool.get_vdi_sr_uuid(uuid)
1313
# avoid circular import
1414
# FIXME should get it from Host instead
1515
from lib.sr import SR

0 commit comments

Comments
 (0)