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

Fix junos_facts test #57065

Merged
merged 1 commit into from
May 29, 2019
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
3 changes: 2 additions & 1 deletion lib/ansible/modules/network/junos/junos_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ def main():

if subset not in VALID_SUBSETS:
module.fail_json(msg='Subset must be one of [%s], got %s' %
(', '.join(VALID_SUBSETS), subset))
(', '.join(sorted([subset for subset in
VALID_SUBSETS])), subset))

if exclude:
exclude_subsets.add(subset)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- assert:
that:
- "result.failed == true"
- "result.msg == 'Subset must be one of [hardware, default, ofacts, config, interfaces], got test'"
- "result.msg == 'Subset must be one of [config, default, hardware, interfaces, ofacts], got test'"

- name: Collect config facts from device in set format
junos_facts:
Expand Down