summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2013-09-05 15:11:26 -0500
committerJames Cammarata <jimi@sngx.net>2013-09-05 15:11:26 -0500
commit20b0dc4abdc6eec6c485d799b747912bdc6da50a (patch)
tree7a3f46b4588821de35d898fb21bbe83131c536d2 /library
parent4bf506f683b9fdfcc79dc3733956d6c05bc517a4 (diff)
downloadansible-20b0dc4abdc6eec6c485d799b747912bdc6da50a.tar.gz
Check for an empty executable passed into the accelerate plugin
This was breaking at least the script module, so it would seem best to check for it and set it to the default executable value
Diffstat (limited to 'library')
-rw-r--r--library/utilities/accelerate4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/utilities/accelerate b/library/utilities/accelerate
index cccc4793b0..3987e4ac1d 100644
--- a/library/utilities/accelerate
+++ b/library/utilities/accelerate
@@ -217,7 +217,7 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
if 'executable' not in data:
return dict(failed=True, msg='internal error: executable is required')
- log("executing: %s" % data['cmd'])
+ #log("executing: %s" % data['cmd'])
rc, stdout, stderr = self.server.module.run_command(data['cmd'], executable=data['executable'], close_fds=True)
if stdout is None:
stdout = ''
@@ -306,7 +306,7 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
log("failed to put the file: %s" % tb)
return dict(failed=True, stdout="Could not write the file")
finally:
- log("wrote %d bytes" % bytes)
+ #log("wrote %d bytes" % bytes)
out_fd.close()
if final_path: