diff options
author | James Cammarata <jimi@sngx.net> | 2013-09-05 15:11:26 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2013-09-05 15:11:26 -0500 |
commit | 20b0dc4abdc6eec6c485d799b747912bdc6da50a (patch) | |
tree | 7a3f46b4588821de35d898fb21bbe83131c536d2 /library | |
parent | 4bf506f683b9fdfcc79dc3733956d6c05bc517a4 (diff) | |
download | ansible-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/accelerate | 4 |
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: |