We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32fc18e commit 2c09058Copy full SHA for 2c09058
1 file changed
awx/main/tasks/jobs.py
@@ -377,8 +377,7 @@ def release_lock(self, project):
377
self.lock_fd = None
378
379
def acquire_lock(self, project, unified_job_id=None):
380
- if not os.path.exists(settings.PROJECTS_ROOT):
381
- os.mkdir(settings.PROJECTS_ROOT)
+ os.makedirs(settings.PROJECTS_ROOT, exist_ok=True)
382
383
lock_path = project.get_lock_file()
384
if lock_path is None:
0 commit comments