added response_timestamps to ios_xr_command module (#50095)

This commit is contained in:
vaneuk 2019-02-04 16:19:07 +03:00 committed by Trishna Guha
commit 2a0c356da9
4 changed files with 17 additions and 6 deletions

View file

@ -477,10 +477,10 @@ def load_config(module, command_filter, commit=False, replace=False,
return diff
def run_commands(module, commands, check_rc=True):
def run_commands(module, commands, check_rc=True, return_timestamps=False):
connection = get_connection(module)
try:
return connection.run_commands(commands=commands, check_rc=check_rc)
return connection.run_commands(commands=commands, check_rc=check_rc, return_timestamps=return_timestamps)
except ConnectionError as exc:
module.fail_json(msg=to_text(exc))