[master 1/4] Run remove and append callbacks when replacing a parent.

dwlehman installerbot-noreply at redhat.com
Tue Jul 28 21:05:34 UTC 2015


From: David Lehman <dlehman at redhat.com>

---
 blivet/devices/lib.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/blivet/devices/lib.py b/blivet/devices/lib.py
index 5faada5..dbdcac7 100644
--- a/blivet/devices/lib.py
+++ b/blivet/devices/lib.py
@@ -177,4 +177,6 @@ def replace(self, x, y):
             raise ValueError("item to be replaced is not in the list")
 
         idx = self.items.index(x)
+        self.removefunc(x)
+        self.appendfunc(y)
         self.items[idx] = y


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/426e1e45eb5fe72f70bebbef4faead22b1e5e711


More information about the anaconda-patches mailing list