stages/gcp.guest-agent.conf: specify encoding

When opening files, always specify the encoding as this will
become a linter warning in the near future.
This commit is contained in:
Christian Kellner 2022-08-03 19:06:08 +02:00 committed by Tomáš Hozza
parent cbffd9d104
commit 24ad788d3c

View file

@ -266,7 +266,7 @@ def main(tree, options):
for section_id, section_content in config.items():
make_section(parser, section_id, section_content)
with open(filepath, "w") as f:
with open(filepath, "w", encoding="utf-8") as f:
parser.write(f)
return 0