diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-neutron/uuid_wscheck.patch | 34 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-neutron_git.bb | 1 |
2 files changed, 35 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 | |||
diff --git a/meta-openstack/recipes-devtools/python/python-neutron_git.bb b/meta-openstack/recipes-devtools/python/python-neutron_git.bb index 2a581ca..3973b63 100644 --- a/meta-openstack/recipes-devtools/python/python-neutron_git.bb +++ b/meta-openstack/recipes-devtools/python/python-neutron_git.bb | |||
| @@ -16,6 +16,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ | |||
| 16 | file://dhcp_agent.ini \ | 16 | file://dhcp_agent.ini \ |
| 17 | file://metadata_agent.ini \ | 17 | file://metadata_agent.ini \ |
| 18 | file://neutron-dhcp-agent-netns-cleanup.cron \ | 18 | file://neutron-dhcp-agent-netns-cleanup.cron \ |
| 19 | file://uuid_wscheck.patch \ | ||
| 19 | " | 20 | " |
| 20 | SRCREV="a8417d78c2675a2ceb5dbfcee70948a88d69e747" | 21 | SRCREV="a8417d78c2675a2ceb5dbfcee70948a88d69e747" |
| 21 | PV="2013.2.3+git${SRCPV}" | 22 | PV="2013.2.3+git${SRCPV}" |
