21 lines
694 B
Diff
21 lines
694 B
Diff
|
|
||
|
Subject: DistroInstaller: Warn if failed to find upload volume
|
||
|
From: Cole Robinson crobinso@redhat.com Wed Aug 24 17:45:50 2011 -0400
|
||
|
Date: Wed Aug 24 17:45:50 2011 -0400:
|
||
|
Git: b4189ff03fef319d61862d4254b6aa232974ebb6
|
||
|
|
||
|
|
||
|
Index: virtinst-0.600.0/virtinst/DistroInstaller.py
|
||
|
===================================================================
|
||
|
--- virtinst-0.600.0.orig/virtinst/DistroInstaller.py
|
||
|
+++ virtinst-0.600.0/virtinst/DistroInstaller.py
|
||
|
@@ -111,6 +111,8 @@ def _upload_file(conn, meter, destpool,
|
||
|
|
||
|
disk.setup_dev(meter=meter)
|
||
|
vol = disk.vol_object
|
||
|
+ if not vol:
|
||
|
+ raise RuntimeError(_("Failed to lookup scratch media volume"))
|
||
|
|
||
|
try:
|
||
|
# Register upload
|