[blivet:master 3/7] Use the disk's name in log message
mulhern
amulhern at redhat.com
Thu Mar 27 14:38:59 UTC 2014
That must be what is wanted, also DeviceError does not have a name field.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/partitioning.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/partitioning.py b/blivet/partitioning.py
index d19a6d9..3269ee4 100644
--- a/blivet/partitioning.py
+++ b/blivet/partitioning.py
@@ -858,7 +858,7 @@ def doPartitioning(storage):
try:
disk.setup()
except DeviceError as e:
- log.error("failed to set up disk %s: %s", e.name, e)
+ log.error("failed to set up disk %s: %s", disk.name, e)
raise PartitioningError(_("disk %s inaccessible") % disk.name)
partitions = storage.partitions[:]
--
1.8.3.1
More information about the anaconda-patches
mailing list