Skip to content

Commit

Permalink
obdiag config support yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Oct 22, 2024
1 parent 8078f40 commit 738f25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/config_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def build_configuration_by_yaml(self, file_path):
if os.path.exists(os.path.expanduser("~/.obdiag/config.yml.d")):
os.remove(os.path.expanduser("~/.obdiag/config.yml.d"))
os.renames(os.path.expanduser("~/.obdiag/config.yml"), os.path.expanduser("~/.obdiag/config.yml.d"))
with open(os.path.expanduser("./config.yml"), "w", encoding="utf-8") as f:
with open(os.path.expanduser("~/.obdiag/config.yml"), "w", encoding="utf-8") as f:
f.write(yaml_output)
self.stdio.print("Build configuration success, please check ~/.obdiag/config.yml")
return
Expand Down

0 comments on commit 738f25e

Please sign in to comment.