diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2013-05-15 14:46:52 -0700 |
|---|---|---|
| committer | Joe Gordon <joe.gordon0@gmail.com> | 2013-05-20 18:58:22 -0700 |
| commit | fe2f1081eb215fba6a205891ddf67c6ff9e7a288 (patch) | |
| tree | df17634d9dedbda2b1870a52c0b733f0e39d53f4 | |
| parent | 0a14e1d0c448475773861d5aec9ed62385f6903c (diff) | |
| download | oslo-fe2f1081eb215fba6a205891ddf67c6ff9e7a288.tar.gz oslo-fe2f1081eb215fba6a205891ddf67c6ff9e7a288.tar.xz oslo-fe2f1081eb215fba6a205891ddf67c6ff9e7a288.zip | |
Enable hacking H702 localization test
Fix and enable test for 'formatting operation should be outside of
localization method call'
Change-Id: I0e707f9d4aacf75f9a9239b323a57d7d39f30c84
| -rw-r--r-- | openstack/common/rpc/matchmaker.py | 3 | ||||
| -rw-r--r-- | tox.ini | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/openstack/common/rpc/matchmaker.py b/openstack/common/rpc/matchmaker.py index 3d72ae7..223e970 100644 --- a/openstack/common/rpc/matchmaker.py +++ b/openstack/common/rpc/matchmaker.py @@ -236,7 +236,8 @@ class HeartbeatMatchMakerBase(MatchMakerBase): self.hosts.discard(host) self.backend_unregister(key, '.'.join((key, host))) - LOG.info(_("Matchmaker unregistered: %s, %s" % (key, host))) + LOG.info(_("Matchmaker unregistered: %(key)s, %(host)s"), + {'key': key, 'host': host}) def start_heartbeat(self): """ @@ -17,7 +17,7 @@ commands = [flake8] show-source = True -ignore = H201,H202,H302,H304,H306,H401,H402,H403,H404,H702 +ignore = H201,H202,H302,H304,H306,H401,H402,H403,H404 exclude = .venv,.tox,dist,doc,*.egg,.update-venv [testenv:pep8] |
