diff options
| author | Chris Lumens <clumens@redhat.com> | 2012-07-03 14:44:56 -0400 |
|---|---|---|
| committer | Chris Lumens <clumens@redhat.com> | 2012-07-03 14:44:56 -0400 |
| commit | 36879baf761799200b2cc78c70b24de37b677b1e (patch) | |
| tree | 1c263b1183db82f585cbc9bf59999b4138955263 /pyanaconda | |
| parent | 23e24d38cc95dc183df4ac1e21a7c6729de1bc6c (diff) | |
| download | anaconda-36879baf761799200b2cc78c70b24de37b677b1e.tar.gz anaconda-36879baf761799200b2cc78c70b24de37b677b1e.tar.xz anaconda-36879baf761799200b2cc78c70b24de37b677b1e.zip | |
Don't traceback when deleting the last of the autopart-created set.
Diffstat (limited to 'pyanaconda')
| -rw-r--r-- | pyanaconda/ui/gui/spokes/custom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index e7b7adf8b..f350e08f3 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -476,7 +476,7 @@ class CustomPartitioningSpoke(NormalSpoke): # If the root is now empty, remove it. Devices from the Unused page # will have no root. - if root and len(root.swaps + root.mounts.values()) == 0: + if self.storage.roots and root and len(root.swaps + root.mounts.values()) == 0: self.storage.roots.remove(root) self._update_ui_for_removals() |
