Fix Exception string arguments
Need to use % for arguments to Exception(). W0715: Exception arguments suggest string formatting might be intended (raising-format-tuple) Trivialfix Change-Id: I1afc2e4a3b34e548247e8a499fe45602454f36f5
This commit is contained in:
parent
b7503fcb18
commit
33fb73aff7
|
@ -213,10 +213,10 @@ class TestOctaviaOvnProviderDriver(
|
||||||
self.assertEqual(expected_lb, observed_lb)
|
self.assertEqual(expected_lb, observed_lb)
|
||||||
found = True
|
found = True
|
||||||
if not found:
|
if not found:
|
||||||
raise Exception("Expected LB %(name)s for protocol %(proto)s "
|
raise Exception("Expected LB %s for protocol %s "
|
||||||
"not found in observed_lbs", {
|
"not found in observed_lbs" % (
|
||||||
'name': expected_lb.get('name'),
|
expected_lb.get('name'),
|
||||||
'proto': expected_lb.get('proto')})
|
expected_lb.get('proto')))
|
||||||
|
|
||||||
def _is_lb_associated_to_ls(self, lb_name, ls_name):
|
def _is_lb_associated_to_ls(self, lb_name, ls_name):
|
||||||
return self._is_lb_associated_to_tab(
|
return self._is_lb_associated_to_tab(
|
||||||
|
|
Loading…
Reference in New Issue