[node-patches] Change in ovirt-node[master]: valid.FQDN should allow more cases

mburns at redhat.com mburns at redhat.com
Tue Jul 9 14:31:24 UTC 2013


Michael Burns has submitted this change and it was merged.

Change subject: valid.FQDN should allow more cases
......................................................................


valid.FQDN should allow more cases

Previously, valid.FQDN rejected hostnames which are otherwise
allowed. Make sure that we allow hostnames which end with a raw
dot, have levels comprised of nothing but numbers, and other
edge cases.

For the time being, disallow entries which look like
IP addresses (\d+.\d+.\d+.\d+), but allow other variations on that
theme (RFC1123 technically allows this, and specifies that IP
addresses should be tried first with DNS second for the [surprisingly
valid] IPv4-identical FQDNs though RFC1738 implies that TLDs in URLs
will never start with a digit.

Updated doctests to match.

Change-Id: Iacbd4b5358143c0f1be5ed263ad2393283540d33
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=981614
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/valid.py
1 file changed, 11 insertions(+), 3 deletions(-)

Approvals:
  Michael Burns: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iacbd4b5358143c0f1be5ed263ad2393283540d33
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: Michael Burns <mburns at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the node-patches mailing list