[node-patches] Change in ovirt-node[master]: defaults: use the same hostname validators as valid
fabiand at redhat.com
fabiand at redhat.com
Thu Mar 19 08:40:00 UTC 2015
Fabian Deutsch has posted comments on this change.
Change subject: defaults: use the same hostname validators as valid
......................................................................
Patch Set 2:
(1 comment)
https://gerrit.ovirt.org/#/c/36305/2/src/ovirt/node/config/defaults.py
File src/ovirt/node/config/defaults.py:
Line 708: keys = ("OVIRT_HOSTNAME",)
Line 709:
Line 710: @NodeConfigFileSection.map_and_update_defaults_decorator
Line 711: def update(self, hostname):
Line 712: (valid.Empty() | valid.HostnameLength())(hostname)
Replacing the validator /FQDN… with …Length) means that all the other hostname restrictions will not be checked.
A better solution might be to do the hostname length check in the FQDNOrIPAddress validator.
Line 713:
Line 714: def transaction(self):
Line 715: cfg = self.retrieve()
Line 716: hostname = cfg["hostname"]
--
To view, visit https://gerrit.ovirt.org/36305
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I2cfa671656b622956aafd6020b37a987cbef1fcc
Gerrit-PatchSet: 2
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