Set self.exists in StorageDevice.__init__ before calling Device.__init__, because some Device methods use .exists and they can be called before StorageDevice.__init__ finishes. This probably needs more rethinking, but it makes things better for now. --- storage/devices.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/storage/devices.py b/storage/devices.py index ead7ae8..6b19fd8 100644 --- a/storage/devices.py +++ b/storage/devices.py @@ -453,6 +453,7 @@ class StorageDevice(Device): if isinstance(parents, Device): parents = [parents] + self.exists = exists Device.__init__(self, device, parents=parents) self.uuid = None @@ -461,7 +462,6 @@ class StorageDevice(Device): self.major = numeric_type(major) self.minor = numeric_type(minor) self.sysfsPath = sysfsPath - self.exists = exists self.serial = serial self.vendor = vendor self.bus = bus -- 1.6.5.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list