operation_general: fix logging to use %s 13/34213/1
authorRoss Brattain <ross.b.brattain@intel.com>
Tue, 4 Apr 2017 06:45:57 +0000 (23:45 -0700)
committerJing Lu <lvjing5@huawei.com>
Thu, 4 May 2017 07:46:39 +0000 (07:46 +0000)
Change-Id: I1b37cbf07e8858ca3e75bb74c57fe84485ff4989
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 37f600566c56542999529da47299c4caf54d073a)

yardstick/benchmark/scenarios/availability/operation/operation_general.py

index 42d70f4..bfd7d04 100644 (file)
@@ -71,7 +71,7 @@ class GeneralOperaion(BaseOperation):
                     stdin=stdin_file)
 
         if exit_status == 0:
-            LOG.debug("success,the operation's output is: {0}".format(stdout))
+            LOG.debug("success,the operation's output is: %s", stdout)
         else:
             LOG.error(
                 "the operation's error, stdout:%s, stderr:%s",