summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-08-13 15:02:00 -0400
committerChris Lumens <clumens@redhat.com>2008-08-13 15:02:00 -0400
commita3b6d391ba1431c77facc73be76513fde3ae249a (patch)
tree8e932f3babbfb6413626fdf0148da495aa1b2838 /exception.py
parent6888001e4177b4da3d50420b42f45ba52a9b82e8 (diff)
downloadanaconda-a3b6d391ba1431c77facc73be76513fde3ae249a.tar.gz
anaconda-a3b6d391ba1431c77facc73be76513fde3ae249a.tar.xz
anaconda-a3b6d391ba1431c77facc73be76513fde3ae249a.zip
Bring up the network before saving a bug via scp.
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/exception.py b/exception.py
index ffb37fabb..12a108e9a 100644
--- a/exception.py
+++ b/exception.py
@@ -501,6 +501,13 @@ def runSaveDialog(anaconda, exn):
"disk."))
continue
elif saveWin.saveToRemote():
+ if not hasActiveNetDev():
+ if not anaconda.intf.enableNetwork(anaconda):
+ anaconda.intf.messageWindow(_("No Network Available"),
+ _("Cannot save a bug report since there is no "
+ "active networking device available."))
+ continue
+
scpInfo = saveWin.getDest()
scpSucceeded = copyExceptionToRemote(anaconda.intf, scpInfo)