diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch | 34 |
1 files changed, 34 insertions, 0 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 new file mode 100644 index 0000000..ba09f7b --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | Binary files git.orig/neutron/api/v2/.attributes.py.swp and git/neutron/api/v2/.attributes.py.swp differ | ||
| 2 | diff -uNr git.orig/neutron/api/v2/attributes.py git/neutron/api/v2/attributes.py | ||
| 3 | --- git.orig/neutron/api/v2/attributes.py 2014-06-23 11:27:07.498653115 -0400 | ||
| 4 | +++ git/neutron/api/v2/attributes.py 2014-06-23 11:31:18.467897605 -0400 | ||
| 5 | @@ -311,7 +311,10 @@ | ||
| 6 | |||
| 7 | def _validate_uuid(data, valid_values=None): | ||
| 8 | if not uuidutils.is_uuid_like(data): | ||
| 9 | - msg = _("'%s' is not a valid UUID") % data | ||
| 10 | + if data != data.rstrip(): | ||
| 11 | + msg = _("'%s' is not a valid UUID: trailing whitespace?") % data | ||
| 12 | + else: | ||
| 13 | + msg = _("'%s' is not a valid UUID") % data | ||
| 14 | LOG.debug(msg) | ||
| 15 | return msg | ||
| 16 | |||
| 17 | Binary files git.orig/neutron/plugins/cisco/n1kv/.n1kv_neutron_plugin.py.swp and git/neutron/plugins/cisco/n1kv/.n1kv_neutron_plugin.py.swp differ | ||
| 18 | diff -uNr git.orig/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py git/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py | ||
| 19 | --- git.orig/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py 2014-06-23 11:27:07.510653175 -0400 | ||
| 20 | +++ git/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py 2014-06-23 11:34:04.968723238 -0400 | ||
| 21 | @@ -642,8 +642,11 @@ | ||
| 22 | raise q_exc.InvalidInput(error_message=msg) | ||
| 23 | pair_list.append((segment, dot1qtag)) | ||
| 24 | else: | ||
| 25 | - LOG.debug(_('%s is not a valid uuid'), segment) | ||
| 26 | - msg = _("'%s' is not a valid UUID") % segment | ||
| 27 | + if segment != segment.rstrip(): | ||
| 28 | + msg = _("'%s' is not a valid UUID: trailing whitespace?") % segment | ||
| 29 | + else: | ||
| 30 | + msg = _("'%s' is not a valid UUID") % segment | ||
| 31 | + LOG.debug(msg) | ||
| 32 | raise q_exc.InvalidInput(error_message=msg) | ||
| 33 | return pair_list | ||
| 34 | |||
