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:
parent
cbffd9d104
commit
24ad788d3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue