Replaced the print() outputs to the sys.stdout.write()
Change-Id: Ib6dad45ba72383e19a616ca5ed601fb38f0701ce
diff --git a/utils/__init__.py b/utils/__init__.py
index 8e858b3..8b04bab 100644
--- a/utils/__init__.py
+++ b/utils/__init__.py
@@ -1,6 +1,7 @@
-import os
-import yaml
import logging
+import os
+import sys
+import yaml
from utils import os_client
@@ -22,8 +23,8 @@
cmp_hosts = config.get('CMP_HOSTS') or []
skipped_nodes = config.get('skipped_nodes') or []
if skipped_nodes:
- print(("\nNotice: {} nodes will be skipped for vm2vm test".format(
- ",".join(skipped_nodes))))
+ sys.stdout.write(("\nNotice: {} nodes will be skipped for vm2vm test"
+ "".format(",".join(skipped_nodes))))
logger.info("Skipping nodes {}".format(",".join(skipped_nodes)))
if not cmp_hosts:
openstack_clients = os_client.OfficialClientManager(