Skip to content

Commit fc6120b

Browse files
authored
CA-411988 Fix TypeError in LVHDoHBASR.load() with dynamic module loading (#787)
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] <Lunfan.Zhang@cloud.com>
1 parent 5b01f83 commit fc6120b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/sm/drivers/LVHDoHBASR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def load(self, sr_uuid):
102102
raise xs_errors.XenError('ConfigSCSIid')
103103

104104
self.SCSIid = self.dconf['SCSIid']
105-
super(LVHDoHBASR, self).load(sr_uuid)
105+
LVHDSR.LVHDSR.load(self, sr_uuid)
106106

107107
def create(self, sr_uuid, size):
108108
self.hbasr.attach(sr_uuid)

0 commit comments

Comments
 (0)