diff options
author | Chris Lumens <clumens@redhat.com> | 2012-10-12 15:54:05 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2012-10-15 10:24:45 -0400 |
commit | 67e0a1990ca7dc68f92b36c9373cc90598cc9577 (patch) | |
tree | bd42e9b67f869d60bd486094e81c7cc8dc3c82ce | |
parent | 429c3bfd58a2a53a78fa105088738d49e815888b (diff) | |
download | anaconda-67e0a1990ca7dc68f92b36c9373cc90598cc9577.tar.gz anaconda-67e0a1990ca7dc68f92b36c9373cc90598cc9577.tar.xz anaconda-67e0a1990ca7dc68f92b36c9373cc90598cc9577.zip |
Fix a traceback in media check (#865897).
-rw-r--r-- | pyanaconda/ui/gui/spokes/source.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py index 4d43889d1..9d336cc02 100644 --- a/pyanaconda/ui/gui/spokes/source.py +++ b/pyanaconda/ui/gui/spokes/source.py @@ -818,12 +818,11 @@ class SourceSpoke(NormalSpoke): dialog = MediaCheckDialog(self.data) with enlightbox(self.window, dialog.window): - dev = self.storage.devicetree.getDeviceByName(dev) - unmount = not dev.format.status - dev.format.mount(mountpoint=MOUNTPOINT) + unmount = not p.format.status + p.format.mount(mountpoint=MOUNTPOINT) dialog.run(MOUNTPOINT + "/" + f) if unmount: - dev.format.unmount() + p.format.unmount() def on_verify_media_clicked(self, button): dev = self._get_selected_media() |