]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow setting Agents description to None
authorHenry Gessau <gessau@cisco.com>
Sun, 21 Jun 2015 05:30:05 +0000 (01:30 -0400)
committerHenry Gessau <gessau@cisco.com>
Sun, 21 Jun 2015 05:40:19 +0000 (01:40 -0400)
commitee14186fbb2486f9088103e9621bc366cc64c552
tree3dbed4d412176d9fc4e16a1ff80c4268842a909d
parentc0a8b77afde2d6c14dd8eb850831e4f428657a46
Allow setting Agents description to None

Fix the validator for the 'description' attribute of Agents, allowing
it to be set to None.

Fix an API test that had two problems:
 1. It was not restoring the description to the agent it had updated
 2. It was retoring the description to '' instead of None.

Closes-Bug: #1466642

Change-Id: I50723e1346be0953d26216ba24907bac008ccfb6
neutron/extensions/agent.py
neutron/tests/api/admin/test_agent_management.py