Sandro Bonazzola has posted comments on this change.

Change subject: packaging: stricter FQDN validation
......................................................................


Patch Set 1: (1 inline comment)

....................................................
File packaging/fedora/setup/common_utils.py
Line 632:                 else:
Line 633:                     isLoopback = False
Line 634:             foundIp = ipaddrPattern.search(line)
Line 635:             if foundIp is not None and not isLoopback:
Line 636:                 ipAddr = foundIp.group(1)
here we are parsing one line at a time an output like this:
 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
     inet6 ::1/128 scope host 
        valid_lft forever preferred_lft forever
 2: em1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master 
ovirtmgmt state DOWN qlen 1000
     link/ether 3c:97:0e:19:30:4b brd ff:ff:ff:ff:ff:ff
     inet6 fe80::3e97:eff:fe19:304b/64 scope link 
        valid_lft forever preferred_lft forever
Line 637:                 logging.debug("Found IP Address: %s"%(ipAddr))
Line 638:                 iplist.add(ipAddr)
Line 639:         return iplist
Line 640:     except:


--
To view, visit http://gerrit.ovirt.org/13933
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I512446c80dfa9c83adb179a445bfae82736d403f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <[email protected]>
Gerrit-Reviewer: Alex Lourie <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Moran Goldboim <[email protected]>
Gerrit-Reviewer: Ofer Schreiber <[email protected]>
Gerrit-Reviewer: Sandro Bonazzola <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to