Skip to content

Commit

Permalink
fix: no crash if metadata folder exists (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys authored Jul 3, 2022
1 parent f32ccc3 commit 03aa2ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splunk_add_on_ucc_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ def _generate(source, config, ta_version, outputdir=None):
outputdir, ta_name, "metadata", "default.meta"
)
if not os.path.exists(default_meta_conf_path):
os.makedirs(os.path.join(outputdir, ta_name, "metadata"))
os.makedirs(os.path.join(outputdir, ta_name, "metadata"), exist_ok=True)
with open(default_meta_conf_path, "w") as default_meta_conf_fd:
MetaConf().create_default(default_meta_conf_fd)

Expand Down
Empty file.

0 comments on commit 03aa2ae

Please sign in to comment.