From: Ondrej Lichtner <olichtne(a)redhat.com>
This call is a leftover artifact from the netns rework, the call can
never really work as it includes accessing properties but these are
never available during the notification about a device deletion - the
notification is after the deletion, not before.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/Machine.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index 6cc77434..0e279aff 100644
--- a/lnst/Controller/Machine.py
+++ b/lnst/Controller/Machine.py
@@ -240,7 +240,6 @@ def device_delete(self, dev_data, netns=None):
if dev_index in self._device_database[ns_instance].keys():
dev = self._device_database[ns_instance][dev_index]
- self._set_readonly_cache_for_device(dev_index, ns_instance)
dev.deleted = True
del self._device_database[ns_instance][dev_index]
--
2.31.1