[PATCH] Use self.name to report that we could not eject cd.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devices.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 2f1319e..9f8270a 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)
 
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux