Skip to content

Commit 2e13029

Browse files
committed
Host: rename main_sr to main_sr_uuid
Other methods to get SRs return `SR` objects, this was inconsistent. Signed-off-by: Yann Dirson <[email protected]>
1 parent 4543229 commit 2e13029

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def imported_vm(host, vm_ref):
314314
name = vm_orig.name()
315315
logging.info(">> Reuse VM %s (%s) on host %s" % (vm_ref, name, host))
316316
else:
317-
vm_orig = host.import_vm(vm_ref, host.main_sr(), use_cache=CACHE_IMPORTED_VM)
317+
vm_orig = host.import_vm(vm_ref, host.main_sr_uuid(), use_cache=CACHE_IMPORTED_VM)
318318

319319
if CACHE_IMPORTED_VM:
320320
# Clone the VM before running tests, so that the original VM remains untouched

lib/host.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def local_vm_srs(self):
460460
srs.append(sr)
461461
return srs
462462

463-
def main_sr(self):
463+
def main_sr_uuid(self):
464464
""" Main SR is either the default SR, or the first local SR, depending on data.py's DEFAULT_SR. """
465465
try:
466466
from data import DEFAULT_SR

0 commit comments

Comments
 (0)