commit 84693cada5f9c6ad548842a2b8e3354f1ca45981
Author: Gábor Antal <email address hidden>
Date: Wed Jan 25 16:36:48 2017 +0100
Fix TypeError in api/neutron.py
In api/neutron.py [1], there is a logging, which throws a TypeError,
because the arguments of the format message is passed as a tuple,
which is not working when you pass the arguments to the logger,
instead of replacing in-place. In the current code, running the log
message leds to the following:
TypeError: not enough arguments for format string
Call stack:
File "test.py", line 9, in <module> "router=%s", (router_id, router))
Message: 'router_static_route_list(): router_id=%s, router=%s'
Arguments: (('asd', 'asdf'),)
Reviewed: https:/ /review. openstack. org/426845 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=84693cada5f 9c6ad548842a2b8 e3354f1ca45981
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 84693cada5f9c6a d548842a2b8e335 4f1ca45981
Author: Gábor Antal <email address hidden>
Date: Wed Jan 25 16:36:48 2017 +0100
Fix TypeError in api/neutron.py
In api/neutron.py [1], there is a logging, which throws a TypeError,
because the arguments of the format message is passed as a tuple,
which is not working when you pass the arguments to the logger,
instead of replacing in-place. In the current code, running the log
message leds to the following:
TypeError: not enough arguments for format string
"router= %s", (router_id, router)) static_ route_list( ): router_id=%s, router=%s'
Call stack:
File "test.py", line 9, in <module>
Message: 'router_
Arguments: (('asd', 'asdf'),)
In this patchset, this bug is fixed.
[1]: https:/ /github. com/openstack/ horizon/ blob/master/ openstack_ dashboard/ api/neutron. py#L1079
Change-Id: I233c435bb7ca89 c6c8ecd49a66bcc b5b59eedf41 d76092d76465d6f 318e74c8b9)
Closes-Bug: #1659342
(cherry picked from commit 41ee8c0677b69f7