From 0df5b92af37d43da20125dc418f1cb92390a8a25 Mon Sep 17 00:00:00 2001 From: Chris Van Heuveln Date: Tue, 26 Feb 2019 01:31:13 -0500 Subject: [PATCH] nxos_command:run_commands results failure when commands array size >1 (#52670) --- lib/ansible/module_utils/network/nxos/nxos.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/network/nxos/nxos.py b/lib/ansible/module_utils/network/nxos/nxos.py index 7684328bf9..d87d2b1b94 100644 --- a/lib/ansible/module_utils/network/nxos/nxos.py +++ b/lib/ansible/module_utils/network/nxos/nxos.py @@ -547,7 +547,11 @@ class HttpApi: if response[0] == '{': out[index] = json.loads(response) - return out + if return_timestamps: + # workaround until timestamps are implemented + return out, list() + else: + return out def get_config(self, flags=None): """Retrieves the current config from the device or cache