neutron-lib/releasenotes/notes/l3-conntrack-helper-validator-654ccafb296e5f21.yaml
Harald Jensås 6d9f9e2841 Fix - L3 Conntrack Helper validator
'type:string' is validated by length, the definition was
passing in validators.validate_string instead of a number.
In python3 this causes a TypeError:
 '>' not supported between instances of 'int' and 'function'

Set the length to 64, matching the db model:
https://opendev.org/openstack/neutron/src/branch/master/neutron/db/models/conntrack_helper.py#L32

Related-Bug: #1823633
Change-Id: Idd9b442a30de294ce3fc97069cadba4457d746ab
2019-07-19 02:15:58 +02:00

9 lines
267 B
YAML

---
fixes:
- |
Fixes an issue in the ``l3-conntrack-helper`` API definition. The
validation for the ``helper`` field passed a string validation
method instead of the maximum length of the string. This caused a
TypeError when running under python3.