stages/gcp.guest-agent.conf: fix some whitespaces

Be more PEP-8 (two lines between methods). Additionally, separate
the builtin imports from library imports and osbuild imports.
This commit is contained in:
Christian Kellner 2022-08-03 19:03:09 +02:00 committed by Tomáš Hozza
parent 2bca7b07f3
commit 679688f66f

View file

@ -9,10 +9,12 @@ https://github.com/GoogleCloudPlatform/guest-agent#configuration
import os
import sys
import iniparse
import osbuild.api
SCHEMA = r"""
"definitions": {
"Accounts": {
@ -211,6 +213,7 @@ SCHEMA = r"""
}
"""
def option_value_to_str(value):
"""
Convert allowed types of option values to string.
@ -225,6 +228,7 @@ def option_value_to_str(value):
value = str(value)
return value
def make_section(cfg, name, settings):
if not cfg.has_section(name):
cfg.add_section(name)
@ -263,6 +267,7 @@ def main(tree, options):
return 0
if __name__ == '__main__':
args = osbuild.api.arguments()
r = main(args["tree"], args["options"])