summaryrefslogtreecommitdiff
path: root/web_infrastructure
diff options
context:
space:
mode:
authorJames Tanner <tanner.jc@gmail.com>2014-03-10 16:11:24 -0500
committerJames Cammarata <jimi@sngx.net>2014-03-10 16:13:30 -0500
commitfc33860e5de5cdae1e010456357c0456da01ae89 (patch)
tree13931bec8dc455adf9732c61e14f85d952eca8b9 /web_infrastructure
parenta1b11826625b7f48d517b088651dc5ed4d6eb9d6 (diff)
downloadansible-modules-core-fc33860e5de5cdae1e010456357c0456da01ae89.tar.gz
Force command action to not be executed by the shell unless specifically enabled
Diffstat (limited to 'web_infrastructure')
-rw-r--r--web_infrastructure/django_manage3
1 files changed, 1 insertions, 2 deletions
diff --git a/web_infrastructure/django_manage b/web_infrastructure/django_manage
index 68eb92c1..b02a9398 100644
--- a/web_infrastructure/django_manage
+++ b/web_infrastructure/django_manage
@@ -232,7 +232,6 @@ def main():
_ensure_virtualenv(module)
- os.chdir(app_path)
cmd = "python manage.py %s" % (command, )
if command in noinput_commands:
@@ -251,7 +250,7 @@ def main():
if module.params[param]:
cmd = '%s %s' % (cmd, module.params[param])
- rc, out, err = module.run_command(cmd)
+ rc, out, err = module.run_command(cmd, cwd=app_path)
if rc != 0:
if command == 'createcachetable' and 'table' in err and 'already exists' in err:
out = 'Already exists.'