--- storage/devicetree.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/storage/devicetree.py b/storage/devicetree.py index d306d6e..44f3129 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -686,7 +686,8 @@ class DeviceTree(object): Raise ValueError if the device's identifier is already in the list. """ - if newdev.path in [d.path for d in self._devices]: + if newdev.path in [d.path for d in self._devices] and \ + not isinstance(newdev, NoDevice): raise ValueError("device is already in tree") # make sure this device's parent devices are in the tree already @@ -1909,7 +1910,8 @@ class DeviceTree(object): """ List of device instances """ devices = [] for device in self._devices: - if device.path in [d.path for d in devices]: + if device.path in [d.path for d in devices] and \ + not isinstance(device, NoDevice): raise DeviceTreeError("duplicate paths in device tree") devices.append(device) -- 1.6.0.6 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list