Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
create the config_path folder if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
chkeita committed Oct 28, 2022
1 parent 3626589 commit d113572
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cli/onefuzz/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def load_config(self) -> None:
self.config = BackendConfig.parse_obj(data)

def save_config(self) -> None:
os.makedirs(os.path.dirname(self.config_path), exist_ok=True)
with open(self.config_path, "w") as handle:
handle.write(self.config.json(indent=4, exclude_none=True))

Expand Down

0 comments on commit d113572

Please sign in to comment.