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:
parent
2bca7b07f3
commit
679688f66f
1 changed files with 5 additions and 0 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue