From 7b6c5f68a9ddacf9b90afc43a1049d87892442a8 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 30 Sep 2014 11:54:28 -0400 Subject: [PATCH] Don't remove script at this point --- awx/main/tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 9bb5ff4afe..85e8bc1d0a 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1119,10 +1119,10 @@ class RunInventoryUpdate(BaseTask): f.close() os.chmod(path, stat.S_IRUSR|stat.S_IWUSR|stat.S_IXUSR) args.append(runpath) - try: - shutil.rmtree(runpath, True) - except OSError: - pass + # try: + # shutil.rmtree(runpath, True) + # except OSError: + # pass verbosity = getattr(settings, 'INVENTORY_UPDATE_VERBOSITY', 1) args.append('-v%d' % verbosity) if settings.DEBUG: