mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
root folder re-creation on project sync
This commit is contained in:
committed by
AlanCoding
parent
a1963024c6
commit
f0ca47b4fd
@@ -1445,6 +1445,9 @@ class RunProjectUpdate(BaseTask):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
def pre_run_hook(self, instance, **kwargs):
|
def pre_run_hook(self, instance, **kwargs):
|
||||||
|
# re-create root project folder if a natural disaster has destroyed it
|
||||||
|
if not os.path.exists(settings.PROJECTS_ROOT):
|
||||||
|
os.mkdir(settings.PROJECTS_ROOT)
|
||||||
if instance.launch_type == 'sync':
|
if instance.launch_type == 'sync':
|
||||||
self.acquire_lock(instance)
|
self.acquire_lock(instance)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user