added timestamps to ios_command module (#50323)

ios_command module now returns timestamps field, which shows command execution time
This commit is contained in:
vaneuk
2019-01-31 15:41:53 +03:00
committed by Sumit Jaiswal
parent 8719866ae8
commit 2a432a093b
4 changed files with 17 additions and 6 deletions

View File

@@ -129,10 +129,10 @@ def get_config(module, flags=None):
return cfg
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))