1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Merge pull request #6386 from ansible/AlanCoding-patch-1

root folder re-creation on project sync
This commit is contained in:
Alan Rominger 2017-06-13 12:10:35 -04:00 committed by GitHub
commit c0923729e2

View File

@ -1446,6 +1446,9 @@ class RunProjectUpdate(BaseTask):
raise
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':
self.acquire_lock(instance)