]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix missing value types for log message
authorSergey Vilgelm <sergey@vilgelm.info>
Sat, 12 Sep 2015 18:55:01 +0000 (21:55 +0300)
committerSergey Vilgelm <sergey@vilgelm.info>
Sat, 12 Sep 2015 19:12:50 +0000 (22:12 +0300)
This patch add missing value types for some log message of exception.

Change-Id: Ie9f512bc804f0cd70df991b1910c975a2f9d6fcf
Closes-Bug: #1494574

neutron/db/l3_db.py
neutron/tests/tempest/exceptions.py

index 60ab661b9af08ca5fbc7410f0eb2fc2f886ea45d..7a14b2b68527c3168647822911d8fefa29a70b97 100644 (file)
@@ -855,7 +855,7 @@ class L3_NAT_dbonly_mixin(l3.RouterPluginBase):
                 if 'id' in fip:
                     data = {'floatingip_id': fip['id'],
                             'internal_ip': internal_ip_address}
-                    msg = (_('Floating IP %(floatingip_id) is associated '
+                    msg = (_('Floating IP %(floatingip_id)s is associated '
                              'with non-IPv4 address %s(internal_ip)s and '
                              'therefore cannot be bound.') % data)
                 else:
index 09f701683b2d7d81aaf5942afe6ccd9e3ee99d16..db66bba20a7aa2426a6d253013c022b4f63e026b 100644 (file)
@@ -64,7 +64,7 @@ class InvalidServiceTag(TempestException):
 
 
 class InvalidIdentityVersion(TempestException):
-    message = "Invalid version %(identity_version) of the identity service"
+    message = "Invalid version %(identity_version)s of the identity service"
 
 
 class TimeoutException(TempestException):