diff --git a/zaza/model.py b/zaza/model.py index 93f4b4f..7e0b76f 100644 --- a/zaza/model.py +++ b/zaza/model.py @@ -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)