Skip to content

Commit

Permalink
Renamed a variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frzk committed Jul 10, 2020
1 parent 1e4831c commit b2493e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ellis_actions/shell_commander.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self):
"""
pass

async def start(self, cmd, cmd_args=[], cmd_input=None):
async def start(self, cmd, cmd_args=[], input_bytes=None):
"""
"""
# Make sure the provided arguments are safe:
Expand All @@ -28,9 +28,7 @@ async def start(self, cmd, cmd_args=[], cmd_input=None):
proc = await asyncio.create_subprocess_shell(command, stdin=PIPE,
stdout=PIPE, stderr=PIPE)

stdout_data, stderr_data = await proc.communicate(cmd_input)

#FIXME: do we need to await proc.terminate() ?
stdout_data, stderr_data = await proc.communicate(input_bytes)

if stdout_data:
print(stdout_data)
Expand Down

0 comments on commit b2493e3

Please sign in to comment.