Fix parse error in tempest_smoke 19/60519/2
authorDelia Popescu <delia.popescu@enea.com>
Thu, 2 Aug 2018 12:50:41 +0000 (15:50 +0300)
committerDelia Popescu <delia.popescu@enea.com>
Thu, 2 Aug 2018 14:00:23 +0000 (17:00 +0300)
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 <delia.popescu@enea.com>
functest/opnfv_tests/openstack/tempest/conf_utils.py

index 88ad3b2..6eb79ed 100644 (file)
@@ -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)