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

network_cli modules don't always return stdout or stdout_lines #23573

Merged
merged 1 commit into from
Apr 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/dellos10/dellos10_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@
RETURN = """
stdout:
description: The set of responses from the commands
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']

stdout_lines:
description: The value of stdout split into a list
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]

Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/dellos6/dellos6_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@
RETURN = """
stdout:
description: The set of responses from the commands
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']

stdout_lines:
description: The value of stdout split into a list
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]

Expand Down
7 changes: 2 additions & 5 deletions lib/ansible/modules/network/dellos9/dellos9_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,19 @@
RETURN = """
stdout:
description: The set of responses from the commands
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']

stdout_lines:
description: The value of stdout split into a list
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]

failed_conditions:
description: The list of conditionals that have failed
returned: failed
type: list
sample: ['...', '...']

warnings:
description: The list of warnings (if any) generated by module based on arguments
returned: always
Expand Down
12 changes: 11 additions & 1 deletion lib/ansible/modules/network/eos/eos_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,18 @@
"""

RETURN = """
stdout:
description: The set of responses from the commands
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']
stdout_lines:
description: The value of stdout split into a list
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]
failed_conditions:
description: the conditionals that failed
description: The list of conditionals that have failed
returned: failed
type: list
sample: ['...', '...']
Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/ios/ios_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@
RETURN = """
stdout:
description: The set of responses from the commands
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']
stdout_lines:
description: The value of stdout split into a list
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]
failed_conditions:
Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/iosxr/iosxr_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@
RETURN = """
stdout:
description: The set of responses from the commands
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']
stdout_lines:
description: The value of stdout split into a list
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]
failed_conditions:
Expand Down
12 changes: 11 additions & 1 deletion lib/ansible/modules/network/junos/junos_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,18 @@
"""

RETURN = """
stdout:
description: The set of responses from the commands
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']
stdout_lines:
description: The value of stdout split into a list
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]
failed_conditions:
description: the conditionals that failed
description: The list of conditionals that have failed
returned: failed
type: list
sample: ['...', '...']
Expand Down
10 changes: 4 additions & 6 deletions lib/ansible/modules/network/nxos/nxos_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,17 @@

RETURN = """
stdout:
description: the set of responses from the commands
returned: always
description: The set of responses from the commands
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']

stdout_lines:
description: The value of stdout split into a list
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]

failed_conditions:
description: the conditionals that failed
description: The list of conditionals that have failed
returned: failed
type: list
sample: ['...', '...']
Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/sros/sros_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@
RETURN = """
stdout:
description: The set of responses from the commands
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']

stdout_lines:
description: The value of stdout split into a list
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: [['...', '...'], ['...'], ['...']]

Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/vyos/vyos_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
RETURN = """
stdout:
description: The set of responses from the commands
returned: always
returned: always apart from low level errors (such as action plugin)
type: list
sample: ['...', '...']
stdout_lines:
Expand All @@ -121,7 +121,7 @@
type: list
sample: [['...', '...'], ['...'], ['...']]
failed_conditions:
description: The conditionals that have failed
description: The list of conditionals that have failed
returned: failed
type: list
sample: ['...', '...']
Expand Down