summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Van Heuveln <cvanheuv@cisco.com>2019-02-26 01:31:13 -0500
committerTrishna Guha <trishnaguha17@gmail.com>2019-02-26 12:01:13 +0530
commit0df5b92af37d43da20125dc418f1cb92390a8a25 (patch)
treeb61cc22dc03fe89f5d7cdf9a5798c52c9379d643
parentd55ddec9234755cb5fc026364b9e8d2b55130ce8 (diff)
downloadansible-0df5b92af37d43da20125dc418f1cb92390a8a25.tar.gz
nxos_command:run_commands results failure when commands array size >1 (#52670)
-rw-r--r--lib/ansible/module_utils/network/nxos/nxos.py6
1 files changed, 5 insertions, 1 deletions
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