@@ -149,9 +149,7 @@ def attach_thin(session, journaler, linstor, sr_uuid, vdi_uuid):
149149 # If the virtual VHD size is lower than the LINSTOR volume size,
150150 # there is nothing to do.
151151 vhd_size = LinstorVhdUtil .compute_volume_size (
152- # TODO: Replace pylint comment with this feature when possible:
153- # https://github.com/PyCQA/pylint/pull/2926
154- LinstorVhdUtil (session , linstor ).get_size_virt (vdi_uuid ), # pylint: disable = E1120
152+ LinstorVhdUtil (session , linstor ).get_size_virt (vdi_uuid ),
155153 image_type
156154 )
157155
@@ -194,9 +192,7 @@ def check_vbd_count():
194192 device_path = linstor .get_device_path (vdi_uuid )
195193 vhdutil_inst = LinstorVhdUtil (session , linstor )
196194 new_volume_size = LinstorVolumeManager .round_up_volume_size (
197- # TODO: Replace pylint comment with this feature when possible:
198- # https://github.com/PyCQA/pylint/pull/2926
199- vhdutil_inst .get_size_phys (vdi_uuid ) # pylint: disable = E1120
195+ vhdutil_inst .get_size_phys (vdi_uuid )
200196 )
201197
202198 volume_info = linstor .get_volume_info (vdi_uuid )
@@ -1203,9 +1199,7 @@ def _load_vdis_ex(self):
12031199 self .vdis [vdi_uuid ] = vdi
12041200
12051201 if USE_KEY_HASH and vdi .vdi_type == vhdutil .VDI_TYPE_VHD :
1206- # TODO: Replace pylint comment with this feature when possible:
1207- # https://github.com/PyCQA/pylint/pull/2926
1208- vdi .sm_config_override ['key_hash' ] = self ._vhdutil .get_key_hash (vdi_uuid ) # pylint: disable = E1120
1202+ vdi .sm_config_override ['key_hash' ] = self ._vhdutil .get_key_hash (vdi_uuid )
12091203
12101204 # 4.c. Update CBT status of disks either just added
12111205 # or already in XAPI.
0 commit comments