From 5bf02523aeb68ea79805d8c0b5d5823757920432 Mon Sep 17 00:00:00 2001 From: Delia Popescu Date: Thu, 2 Aug 2018 15:50:41 +0300 Subject: Fix parse error in tempest_smoke Test failes to parse /etc/rally/rally.conf (RALLY_CONF_FILE) whith inplace=1 keyword argument for fileinput One new space is added in second line JIRA: ARMBAND-395 Change-Id: I8adb333047f9962f4105a6a74e2f8ef83d5745e0 Signed-off-by: Delia Popescu --- functest/opnfv_tests/openstack/tempest/conf_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py index 88ad3b2d9..6eb79ed41 100644 --- a/functest/opnfv_tests/openstack/tempest/conf_utils.py +++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py @@ -55,7 +55,7 @@ def create_rally_deployment(): with open(RALLY_AARCH64_PATCH_PATH, "r") as pfile: rally_patch_conf = pfile.read() - for line in fileinput.input(RALLY_CONF_PATH, inplace=1): + for line in fileinput.input(RALLY_CONF_PATH): print(line, end=' ') if "cirros|testvm" in line: print(rally_patch_conf) -- cgit 1.2.3-korg