Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nxos.py:httpapi:return_timestamps causes ValueError when output empty #54907

Conversation

Projects
None yet
3 participants
@chrisvanheuveln
Copy link
Contributor

chrisvanheuveln commented Apr 5, 2019

SUMMARY

This is related to issue #52671.

Symptom:
nxos_command (or other calling module) calls httpapi run_commands() with
return_timestamps set to True; the device returns an empty string;
then run_commands() returns a single variable instead of two variables
which raises: ValueError: need more than 1 value to unpack

This fix is the same workaround as used on line 551/555.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

module_utils/network/nxos/nxos.py

nxos.py:httpapi:return_timestamps causes ValueError when output empty
This is related to issue #52671.

Symptom:
  `nxos_command` (or other calling module) calls httpapi `run_commands()` with
  `return_timestamps` set to `True`; the device returns an empty string;
  then `run_commands()` returns a single variable instead of two variables
  which raises: `ValueError: need more than 1 value to unpack`
@ansibot

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.