Merge "Fix errors in string formatting operations"

This commit is contained in:
Jenkins
2015-01-23 20:13:07 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ class XMLMismatch(object):
self.actual = state.actual
def describe(self):
return "%(path)s: XML does not match" % self.path
return "%(path)s: XML does not match" % {'path': self.path}
def get_details(self):
return {
+2 -2
View File
@@ -9931,7 +9931,7 @@ Active: 8381604 kB
elif method_name == "detach_interface":
fake_image_meta = None
else:
raise ValueError("Unhandled method %" % method_name)
raise ValueError("Unhandled method %s" % method_name)
if method_name == "attach_interface":
self.mox.StubOutWithMock(conn.firewall_driver,
@@ -9957,7 +9957,7 @@ Active: 8381604 kB
elif method_name == "detach_interface":
conn.detach_interface(instance, network_info[0])
else:
raise ValueError("Unhandled method %" % method_name)
raise ValueError("Unhandled method %s" % method_name)
@mock.patch.object(lockutils, "external_lock")
def test_attach_interface_get_config(self, mock_lock):