]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use string exception casting everywhere
authorMartin Roy <mroy@iweb.com>
Thu, 18 Jun 2015 17:45:02 +0000 (13:45 -0400)
committerMartin Roy <mroy@iweb.com>
Mon, 22 Jun 2015 13:13:56 +0000 (09:13 -0400)
commitfe6654b25044de7d7d15573c689a0f003c018e99
tree56237c70d67fbcec1b76855a120abfb38624cd48
parentffb3658d0e5d1c49a0c8565bef88461c63a2ebe9
Use string exception casting everywhere

Instead of the deprecated "message" member access,
casting to a string invokes the __str__ method of the exception
that is wired to return the message

Added a test of the failure cases of IpRouteCommand::delete_gateway
because they were missing

Running unit and functional tests locally no longer shows the warning
reported in the bug.

Change-Id: Ia79f526aa973ece1145615d65349f860aa3fd465
Closes-Bug: #1466542
neutron/agent/linux/ip_lib.py
neutron/agent/linux/utils.py
neutron/api/v2/resource.py
neutron/cmd/sanity/checks.py
neutron/plugins/embrane/agent/dispatcher.py
neutron/plugins/embrane/agent/operations/router_operations.py
neutron/tests/functional/agent/l3/test_namespace_manager.py
neutron/tests/tempest/common/accounts.py
neutron/tests/unit/agent/linux/test_ip_lib.py
neutron/tests/unit/api/test_extensions.py
neutron/tests/unit/test_manager.py