On 04/08/2010 03:44 PM, Chris Lumens wrote:
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
Ah, that's right. I forgot how join() worked again.
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list