Douglas Schilling Landgraf has uploaded a new change for review. Change subject: defaults: use the same hostname validators as valid ......................................................................
defaults: use the same hostname validators as valid Currently we use different validators for hostname field, one in defaults and other in valid. This patch sync the validators between them. Change-Id: I2cfa671656b622956aafd6020b37a987cbef1fcc Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1176057 Signed-off-by: Douglas Schilling Landgraf <[email protected]> --- M src/ovirt/node/config/defaults.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/05/36305/1 diff --git a/src/ovirt/node/config/defaults.py b/src/ovirt/node/config/defaults.py index 08ec246..6527c67 100755 --- a/src/ovirt/node/config/defaults.py +++ b/src/ovirt/node/config/defaults.py @@ -709,7 +709,7 @@ @NodeConfigFileSection.map_and_update_defaults_decorator def update(self, hostname): - (valid.Empty() | valid.FQDNOrIPAddress())(hostname) + (valid.Empty() | valid.HostnameLength())(hostname) def transaction(self): cfg = self.retrieve() -- To view, visit http://gerrit.ovirt.org/36305 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2cfa671656b622956aafd6020b37a987cbef1fcc Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: Douglas Schilling Landgraf <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
