Merge pull request #61 from gnuoy/remove-timeout-workaround

Remove workaround for libjuju timeout bug
This commit is contained in:
David Ames
2018-06-13 15:18:15 -07:00
committed by GitHub

View File

@@ -161,18 +161,11 @@ async def async_run_on_unit(model_name, unit_name, command, timeout=None):
:type unit: str
:param command: Command to execute
:type command: str
:param timeout: DISABLED due to Issue #225
https://github.com/juju/python-libjuju/issues/225
:param timeout: How long in seconds to wait for command to complete
:type timeout: int
:returns: action.data['results'] {'Code': '', 'Stderr': '', 'Stdout': ''}
:rtype: dict
"""
# Disabling timeout due to Issue #225
# https://github.com/juju/python-libjuju/issues/225
if timeout:
timeout = None
async with run_in_model(model_name) as model:
unit = get_unit_from_name(unit_name, model)
action = await unit.run(command, timeout=timeout)