From e6731a72b9881c60a713358997638d5ab814be18 Mon Sep 17 00:00:00 2001 From: "Lunfan Zhang[Lunfan.Zhang]" Date: Mon, 22 Dec 2025 08:27:59 +0000 Subject: [PATCH] CA-411988 Fix TypeError in LVHDoHBASR.load() with dynamic module loading Replace super() with direct parent class call to fix "TypeError: super(type, obj): obj must be an instance or subtype of type" when SR.from_uuid() dynamically loads the module. This aligns load() with all other methods in the class (create, attach, scan, probe, detach, delete) which already use direct parent calls. Signed-off-by: Lunfan Zhang[Lunfan.Zhang] --- libs/sm/drivers/LVHDoHBASR.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sm/drivers/LVHDoHBASR.py b/libs/sm/drivers/LVHDoHBASR.py index 195da2c5b..14610ccdf 100644 --- a/libs/sm/drivers/LVHDoHBASR.py +++ b/libs/sm/drivers/LVHDoHBASR.py @@ -102,7 +102,7 @@ def load(self, sr_uuid): raise xs_errors.XenError('ConfigSCSIid') self.SCSIid = self.dconf['SCSIid'] - super(LVHDoHBASR, self).load(sr_uuid) + LVHDSR.LVHDSR.load(self, sr_uuid) def create(self, sr_uuid, size): self.hbasr.attach(sr_uuid)