diff options
-rw-r--r-- | nics/net_device.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nics/net_device.py b/nics/net_device.py index ba3d9c2..0af4ad5 100644 --- a/nics/net_device.py +++ b/nics/net_device.py @@ -885,7 +885,7 @@ def remove_from_list(host): Remove network device object from global structure Parameter will by host ip """ - for nic in NICS_LIST: + for nic in NICS_LIST[:]: if host == nic['host']: NICS_LIST.remove(nic) |