[et-mgmt-tools] [PATCH 2 of 4] Fix typo and better error message
David Lutterkort
dlutter at redhat.com
Wed Dec 5 00:44:57 UTC 2007
When generating error message about a bad reference from a drive to a disk,
use disk_id attribute for the drive and make it clearer that we are talking
about a problem in the XML, not that a file is actually missing.
diff -r 4227c03796d6 -r 11d9412efc34 virtinst/ImageParser.py
--- a/virtinst/ImageParser.py Tue Dec 04 15:17:10 2007 -0800
+++ b/virtinst/ImageParser.py Tue Dec 04 15:17:12 2007 -0800
@@ -60,8 +60,8 @@ class Image:
for boot in self.domain.boots:
for d in boot.disks:
if not self.storage.has_key(d.disk_id):
- raise ParserException(_("Disk '%s' not found")
- % d.file)
+ raise ParserException(_("Disk entry for '%s' not found")
+ % d.disk_id)
d.disk = self.storage[d.disk_id]
class Domain:
More information about the et-mgmt-tools
mailing list