@@ -259,7 +259,7 @@ def add_network_interface(self, **kwargs) -> str:
259
259
default_nic = [nic for nic in all_nics if nic .id == default_nic_id ]
260
260
if len (default_nic ) == 0 :
261
261
raise PycloudlibError ("Could not get the first/default NIC" )
262
- default_nic = default_nic [0 ]
262
+ default_nic = default_nic [0 ] # type: ignore
263
263
subnet_id = default_nic .ip_configurations [0 ].subnet .id # type: ignore
264
264
nsg_id = default_nic .network_security_group .id # type: ignore
265
265
@@ -280,7 +280,7 @@ def add_network_interface(self, **kwargs) -> str:
280
280
"tags" : None ,
281
281
}
282
282
nic_name = f"{ self .name } -nic-{ us } "
283
- nic_poller = self ._network_client .network_interfaces .begin_create_or_update (
283
+ nic_poller = self ._network_client .network_interfaces .begin_create_or_update ( # type: ignore
284
284
self ._instance ["rg_name" ], nic_name , default_config
285
285
)
286
286
created_nic = nic_poller .result ()
@@ -324,7 +324,8 @@ def remove_network_interface(self, ip_address: str):
324
324
self ._remove_nic_from_vm (nic_params , primary_nic )
325
325
# delete the removed NIC
326
326
self ._network_client .network_interfaces .begin_delete (
327
- self ._instance ["rg_name" ], nic_to_remove .name
327
+ self ._instance ["rg_name" ],
328
+ nic_to_remove .name , # type: ignore
328
329
)
329
330
330
331
def _remove_nic_from_vm (
0 commit comments