Fix incorrect f-string 43/73143/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Tue, 4 Jan 2022 22:08:27 +0000 (23:08 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 4 Jan 2022 22:09:19 +0000 (23:09 +0100)
Change-Id: I463dc155d03b0d5c86b72f4fb7868c1aa7c29a0b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 99e784d223d0e1f11eed647d4805f825e5246696)

xtesting/core/campaign.py

index 5c5744e..dbde42d 100644 (file)
@@ -81,7 +81,7 @@ class Campaign():
                         "^{os.environ['HTTP_DST_URL']}/*", '',
                         output["results"][i]["details"]["links"][j])
             Campaign.__logger.debug("data to archive: \n%s", output)
-            with open("{env.get('BUILD_TAG')}.json", "w",
+            with open(f"{env.get('BUILD_TAG')}.json", "w",
                       encoding='utf-8') as dfile:
                 json.dump(output, dfile)
         except Exception:  # pylint: disable=broad-except