Skip to content

Commit

Permalink
auto-create log-dir (fix #58)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Sep 13, 2024
1 parent 851b08a commit 354bc10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ansibleguy-webui/aw/execute/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from aw.utils.util import is_null, is_set, write_file_0640
from aw.utils.subps import process
from aw.execute.play_credentials import write_pwd_file, get_pwd_file
from aw.execute.util import overwrite_and_delete_file, update_status, get_path_run, job_logs
from aw.execute.util import overwrite_and_delete_file, update_status, get_path_run, job_logs, create_dirs
from aw.model.job_credential import BaseJobCredentials
from aw.utils.handlers import AnsibleRepositoryError
from aw.model.repository import Repository
Expand All @@ -23,6 +23,7 @@ def __init__(self, repository: Repository, execution: JobExecution = None, path_
self.path_run = path_run
self.execution = execution
self.path_repo = None
create_dirs(path=config['path_log'], desc='log')

def create_repository(self, env: dict):
if is_set(self.repository.git_override_initialize):
Expand Down

0 comments on commit 354bc10

Please sign in to comment.