Re: [PATCH 1/3] storage/udev.py handle iscsi ID_PATH IPV6 address containing : (#579761)

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

 



> >  def udev_device_get_iscsi_address(info):
> >      path_components = udev_device_get_path(info).split("-")
> >
> >-    return path_components[1].split(":")[0]
> >+    # IPV6 addresses contain : within the address, so take everything
> >+    # before the last : as address
> >+    return ":".join(path_components[1].split(":")[:-1])
> 
> Won't this return a string with all the colons from
> path_components[1] removed? Is it what you wanted? If so then ack.

The ":".join() part means all the components will get joined back
together into a single string.

- Chris

_______________________________________________
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