On 04/08/2010 10:04 AM, Hans de Goede 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.
Ales _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list