]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix typo'd format parameter in midonet_lib.py
authorAngus Lees <gus@inodes.org>
Sun, 21 Dec 2014 23:25:58 +0000 (10:25 +1100)
committerAngus Lees <gus@inodes.org>
Sun, 21 Dec 2014 23:25:58 +0000 (10:25 +1100)
commita9571b5d8ecc2db8f2d0808eb444bab4baf348c3
treeaf430fb9a69635be8e79823aea81d63fd5e20915
parentfffc6e4712328574a8fe42d7b7520c0dace2b6b7
Fix typo'd format parameter in midonet_lib.py

In add_static_nat(...):

        LOG.debug("MidoClient.add_static_nat called: "
                  "tenant_id=%(tenant_id)s, chain_name=%(chain_name)s, "
                  "from_ip=%(from_ip)s, to_ip=%(to_ip)s, "
                  "port_id=%(port_id)s, nat_type=%(nat_type)s",
                  {'tenant_id': tenant_id, 'chain_name': chain_name,
                   'from_ip': from_ip, 'to_ip': to_ip,
                   'portid': port_id, 'nat_type': nat_type})

Note port_id vs portid.  This line of code raises a KeyError if debug
logging is enabled.

(Found via pylint)

Change-Id: I4d76255a559489f2f0e074b4489cfa5f33f1dddf
Closes-Bug: #1404755
neutron/plugins/midonet/midonet_lib.py