From: David Lehman dlehman@redhat.com
--- blivet/devices/lib.py | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/blivet/devices/lib.py b/blivet/devices/lib.py index 5faada5..f760c89 100644 --- a/blivet/devices/lib.py +++ b/blivet/devices/lib.py @@ -169,12 +169,19 @@ def replace(self, x, y):
.. note::
+ This method does update the child counts for the two devices. + + .. note:: + It is usually a bad idea to bypass the callbacks. This is intended for specific circumstances like toggling encryption of container member devices in the devicefactory classes. + """ if x not in self.items: raise ValueError("item to be replaced is not in the list")
idx = self.items.index(x) self.items[idx] = y + x.removeChild() + y.addChild()