@@ -150,9 +150,7 @@ def attach_thin(session, journaler, linstor, sr_uuid, vdi_uuid):
150150 # If the virtual VHD size is lower than the LINSTOR volume size,
151151 # there is nothing to do.
152152 vhd_size = LinstorVhdUtil .compute_volume_size (
153- # TODO: Replace pylint comment with this feature when possible:
154- # https://github.com/PyCQA/pylint/pull/2926
155- LinstorVhdUtil (session , linstor ).get_size_virt (vdi_uuid ), # pylint: disable = E1120
153+ LinstorVhdUtil (session , linstor ).get_size_virt (vdi_uuid ),
156154 image_type
157155 )
158156
@@ -195,9 +193,7 @@ def check_vbd_count():
195193 device_path = linstor .get_device_path (vdi_uuid )
196194 vhdutil_inst = LinstorVhdUtil (session , linstor )
197195 new_volume_size = LinstorVolumeManager .round_up_volume_size (
198- # TODO: Replace pylint comment with this feature when possible:
199- # https://github.com/PyCQA/pylint/pull/2926
200- vhdutil_inst .get_size_phys (vdi_uuid ) # pylint: disable = E1120
196+ vhdutil_inst .get_size_phys (vdi_uuid )
201197 )
202198
203199 volume_info = linstor .get_volume_info (vdi_uuid )
@@ -1210,9 +1206,7 @@ def _load_vdis_ex(self):
12101206 self .vdis [vdi_uuid ] = vdi
12111207
12121208 if USE_KEY_HASH and vdi .vdi_type == vhdutil .VDI_TYPE_VHD :
1213- # TODO: Replace pylint comment with this feature when possible:
1214- # https://github.com/PyCQA/pylint/pull/2926
1215- vdi .sm_config_override ['key_hash' ] = self ._vhdutil .get_key_hash (vdi_uuid ) # pylint: disable = E1120
1209+ vdi .sm_config_override ['key_hash' ] = self ._vhdutil .get_key_hash (vdi_uuid )
12161210
12171211 # 4.c. Update CBT status of disks either just added
12181212 # or already in XAPI.
0 commit comments