[node-patches] Change in ovirt-node[master]: valid: add to FQDNOrIPAddress, HostnameLength validation

fabiand at redhat.com fabiand at redhat.com
Fri Mar 20 09:56:31 UTC 2015


Fabian Deutsch has posted comments on this change.

Change subject: valid: add to FQDNOrIPAddress, HostnameLength validation
......................................................................


Patch Set 3: Code-Review-1

(1 comment)

One nit pick

https://gerrit.ovirt.org/#/c/38950/3/src/ovirt/node/valid.py
File src/ovirt/node/valid.py:

Line 456:         self._validator = FQDN() | IPAddress(allow_ipv6)
Line 457:         self.description = self._validator.description
Line 458: 
Line 459:     def validate(self, value):
Line 460:         if HostnameLength()(value) and self._validator.validate(value):
Please change the validator above, in line 456.

    (…) & HostnameLength()
Line 461:             return True
Line 462:         return False
Line 463: 
Line 464: 


-- 
To view, visit https://gerrit.ovirt.org/38950
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I02d907b69a15506ffc9337f642d97a301bf3c9f0
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes



More information about the node-patches mailing list