]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix parameters in exception handling
authorGary Kotton <gkotton@vmware.com>
Tue, 17 Feb 2015 13:51:59 +0000 (05:51 -0800)
committerGary Kotton <gkotton@vmware.com>
Sun, 22 Feb 2015 06:31:31 +0000 (22:31 -0800)
commit5476c9ef4f0802e9a97c806a94e94b7e247ba887
tree43b823f88f2676ee3df88c86a464dd6dddefadc0
parent992784cc8dc70d7f0ee43a4812bc41c29ca0e83c
Fix parameters in exception handling

The commit d9155521539e5e67f0984c180267fc91cc17c738 added
exceptions with one too many %.

The format should be as follows:

class ExceptionExample(exceptions.NeutronException):
    message = _('Invalid input %(input)s')

It is called by raise.ExceptionExample(input=input)

The patch also fixes a typo with InvalidAuthenticationTypeExecption.

Change-Id: I0f796fbe0eb029277250ae82c3d7f75842364f76
neutron/agent/linux/keepalived.py
neutron/tests/unit/agent/linux/test_keepalived.py