Remove string concatenation in favor of string formatting

Some of the modules still utilized string concatenation
instead of using formatting.  In order to align with other
modules in the project, I refactored these modules to use string
formatting instead.

Change-Id: I708392e1d03b6331a134419aa0ae9dc02a05c31b
Closes-Bug: 1522738
This commit is contained in:
Steve Wilkerson
2015-12-09 08:38:52 -06:00
committed by Jean-Emile DARTOIS
parent 62570525ad
commit 1c49d07912
8 changed files with 20 additions and 31 deletions

View File

@@ -34,7 +34,7 @@ class DbAuditTemplateTestCase(base.DbTestCase):
for i in range(1, 6):
audit_template = utils.create_test_audit_template(
uuid=w_utils.generate_uuid(),
name='My Audit Template ' + str(i))
name='My Audit Template {0}'.format(i))
uuids.append(six.text_type(audit_template['uuid']))
res = self.dbapi.get_audit_template_list(self.context)
res_uuids = [r.uuid for r in res]