Re: [PATCH 4/7] Change existing call to deviceNameToDiskByPath().

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

 



Ack

On 10/08/2009 09:28 AM, David Cantrell wrote:
The only existing use of deviceNameToDiskByPath() expected the basename
returned.  Since the function returns the full /dev/disk/by-path/...
path, take the basename of the returned value.
---
  storage/devicetree.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 660d3fc..ae0ff15 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -132,7 +132,7 @@ def questionInitializeDisk(intf=None, path=None, description=None):
              path = '/dev/' + path

          dev = parted.getDevice(path)
-        bypath = deviceNameToDiskByPath(path)
+        bypath = os.path.basename(deviceNameToDiskByPath(path))
          details = ""

          if description is None:

_______________________________________________
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