init: Stop creating module defaults dir twice
JIRA: COMPOSE-2447 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
9f583eeb6d
commit
9daaf1e038
@ -160,4 +160,4 @@ def write_module_defaults(compose):
|
|||||||
with temp_dir(prefix="moduledefaults_") as tmp_dir:
|
with temp_dir(prefix="moduledefaults_") as tmp_dir:
|
||||||
get_dir_from_scm(scm_dict, tmp_dir, logger=compose._logger)
|
get_dir_from_scm(scm_dict, tmp_dir, logger=compose._logger)
|
||||||
compose.log_debug("Writing module defaults")
|
compose.log_debug("Writing module defaults")
|
||||||
shutil.copytree(tmp_dir, compose.paths.work.module_defaults_dir())
|
shutil.copytree(tmp_dir, compose.paths.work.module_defaults_dir(create_dir=False))
|
||||||
|
Loading…
Reference in New Issue
Block a user