diff options
author | Chris Van Heuveln <cvanheuv@cisco.com> | 2019-02-26 01:31:13 -0500 |
---|---|---|
committer | Trishna Guha <trishnaguha17@gmail.com> | 2019-02-26 12:01:13 +0530 |
commit | 0df5b92af37d43da20125dc418f1cb92390a8a25 (patch) | |
tree | b61cc22dc03fe89f5d7cdf9a5798c52c9379d643 | |
parent | d55ddec9234755cb5fc026364b9e8d2b55130ce8 (diff) | |
download | ansible-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.py | 6 |
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 |