Skip to content

Commit

Permalink
Do not transmit the private_data_dir to the worker
Browse files Browse the repository at this point in the history
  • Loading branch information
jbradberry committed Oct 7, 2020
1 parent cf8e8cb commit 65cb34e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible_runner/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, _output=None, **kwargs):
if _output is None:
_output = sys.stdout.buffer
self._output = _output
self.private_data_dir = kwargs.pop('private_data_dir')
self.kwargs = kwargs

self.status = "unstarted"
Expand All @@ -48,8 +49,7 @@ def run(self):
self._output.write(b'\n')
self._output.flush()

private_data_dir = self.kwargs.get('private_data_dir')
self._output.write(utils.stream_dir(private_data_dir))
self._output.write(utils.stream_dir(self.private_data_dir))
self._output.write(json.dumps({'eof': True}).encode('utf-8'))
self._output.write(b'\n')
self._output.flush()
Expand Down

0 comments on commit 65cb34e

Please sign in to comment.