diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-neutron')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch b/meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch index ba09f7b..f705091 100644 --- a/meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch +++ b/meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch | |||
| @@ -7,7 +7,7 @@ diff -uNr git.orig/neutron/api/v2/attributes.py git/neutron/api/v2/attributes.py | |||
| 7 | def _validate_uuid(data, valid_values=None): | 7 | def _validate_uuid(data, valid_values=None): |
| 8 | if not uuidutils.is_uuid_like(data): | 8 | if not uuidutils.is_uuid_like(data): |
| 9 | - msg = _("'%s' is not a valid UUID") % data | 9 | - msg = _("'%s' is not a valid UUID") % data |
| 10 | + if data != data.rstrip(): | 10 | + if data is not None and data != data.rstrip(): |
| 11 | + msg = _("'%s' is not a valid UUID: trailing whitespace?") % data | 11 | + msg = _("'%s' is not a valid UUID: trailing whitespace?") % data |
| 12 | + else: | 12 | + else: |
| 13 | + msg = _("'%s' is not a valid UUID") % data | 13 | + msg = _("'%s' is not a valid UUID") % data |
| @@ -24,7 +24,7 @@ diff -uNr git.orig/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py git/neutron | |||
| 24 | else: | 24 | else: |
| 25 | - LOG.debug(_('%s is not a valid uuid'), segment) | 25 | - LOG.debug(_('%s is not a valid uuid'), segment) |
| 26 | - msg = _("'%s' is not a valid UUID") % segment | 26 | - msg = _("'%s' is not a valid UUID") % segment |
| 27 | + if segment != segment.rstrip(): | 27 | + if segment is not None and segment != segment.rstrip(): |
| 28 | + msg = _("'%s' is not a valid UUID: trailing whitespace?") % segment | 28 | + msg = _("'%s' is not a valid UUID: trailing whitespace?") % segment |
| 29 | + else: | 29 | + else: |
| 30 | + msg = _("'%s' is not a valid UUID") % segment | 30 | + msg = _("'%s' is not a valid UUID") % segment |
