summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Granados Moreno <jgranado@redhat.com>2009-03-27 11:38:57 +0100
committerJoel Granados Moreno <jgranado@redhat.com>2009-03-27 16:16:14 +0100
commita88b876ee50687de6396229fef0a77c232cceece (patch)
treebec946f9275a057f4c6e7c1294736af6aa1c6dde
parenta6cca07d229f15c05e582590f974ebb43bd66290 (diff)
downloadanaconda-a88b876ee50687de6396229fef0a77c232cceece.tar.gz
anaconda-a88b876ee50687de6396229fef0a77c232cceece.tar.xz
anaconda-a88b876ee50687de6396229fef0a77c232cceece.zip
Use self.name to report that we could not eject cd.
-rw-r--r--storage/devices.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/devices.py b/storage/devices.py
index 2f1319e34..9f8270ad6 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2684,7 +2684,7 @@ class OpticalDevice(StorageDevice):
try:
_isys.ejectcdrom(fd)
except SystemError as e:
- log.warning("error ejecting cdrom %s: %s" % (device, e))
+ log.warning("error ejecting cdrom %s: %s" % (self.name, e))
os.close(fd)