]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Prevents 400 NVP errors caused by a None display_name
authorarmando-migliaccio <amigliaccio@nicira.com>
Fri, 6 Sep 2013 19:57:48 +0000 (12:57 -0700)
committerarmando-migliaccio <amigliaccio@nicira.com>
Fri, 6 Sep 2013 20:59:18 +0000 (13:59 -0700)
commite82f0eb5df898f930f6d6a476b5d9550b1625d76
tree4711184202aa24bcd8906d0c348aadb81b6325c5
parente26639b190fb974ba61fb2e479029e26cb3c6a70
Prevents 400 NVP errors caused by a None display_name

The API forbids a resource name to be None, but the
Model does not. Such errors may  be induced by
programming directly against the plugin interface. With
this fix we avoid raising 400 faults which may be introduced
by involuntary programming errors.

Fixes bug 1221896

Change-Id: Ic1201c5af5691f2bed38753453f73c229858b10f
neutron/plugins/nicira/nvplib.py
neutron/tests/unit/nicira/test_nvplib.py