diff options
author | 2022-01-04 23:08:27 +0100 | |
---|---|---|
committer | 2022-01-04 23:09:19 +0100 | |
commit | 8f58d26fca9103d6f320ec27d50505cd83ea8a99 (patch) | |
tree | 6567535b9a5732ad649ac239c156fbc50cf64645 /xtesting/core/campaign.py | |
parent | 1b0c4def95c5bf93462d3885a53012bc7f745173 (diff) |
Fix incorrect f-string
Change-Id: I463dc155d03b0d5c86b72f4fb7868c1aa7c29a0b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 99e784d223d0e1f11eed647d4805f825e5246696)
Diffstat (limited to 'xtesting/core/campaign.py')
-rw-r--r-- | xtesting/core/campaign.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtesting/core/campaign.py b/xtesting/core/campaign.py index 5c5744ef..dbde42df 100644 --- a/xtesting/core/campaign.py +++ b/xtesting/core/campaign.py @@ -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 |