mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-12-24 02:12:59 +00:00
yml whitespace fix
This commit is contained in:
parent
e45d3ae83f
commit
301b505efa
2 changed files with 6 additions and 2 deletions
|
@ -7,7 +7,7 @@ version: '0.1'
|
|||
runtime:
|
||||
storage: /tmp/kiwi
|
||||
shells:
|
||||
- /bin/bash
|
||||
- /bin/bash
|
||||
env: null
|
||||
|
||||
markers:
|
||||
|
|
|
@ -49,7 +49,10 @@ class Config:
|
|||
"""dump into textual representation"""
|
||||
|
||||
# dump yml content
|
||||
yml_string = yaml.dump(self.__yml_content, default_flow_style=False, sort_keys=False)
|
||||
yml_string = yaml.dump(
|
||||
self.__yml_content,
|
||||
default_flow_style=False, sort_keys=False
|
||||
).strip()
|
||||
|
||||
# insert newline before every main key
|
||||
yml_string = re.sub(r'^(\S)', r'\n\1', yml_string, flags=re.MULTILINE)
|
||||
|
@ -82,6 +85,7 @@ class Config:
|
|||
|
||||
with open(KIWI_CONF_NAME, 'w') as stream:
|
||||
stream.write(str(self))
|
||||
stream.write('\n')
|
||||
|
||||
|
||||
class DefaultConfig(Config):
|
||||
|
|
Loading…
Reference in a new issue