Skip to content

Commit

Permalink
Missing whitespace for exos_config with defaults: True (ansible-colle…
Browse files Browse the repository at this point in the history
…ctions#516)

* Missing whitespace for exos_config with defaults: True

Solves ansible-collections#513

* changelog

* changelog yaml error

* Update changelogs/fragments/516-whitespace-exos-config-defaults.yaml

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>

---------

Co-authored-by: Yannis Ansermoz <yannis.ansermoz@edificom.ch>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
(cherry picked from commit 18340ef)
  • Loading branch information
EdificomSA authored and Andersson007 committed Oct 24, 2023
1 parent 0d2ecc4 commit aedbc98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/516-whitespace-exos-config-defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "exos_config - missing whitespace in command with ``defaults: True``. It happened because the command is ``show configurationdetail`` instead of ``show configuration detail`` (https://github.com/ansible-collections/community.network/pull/516)."
2 changes: 1 addition & 1 deletion plugins/modules/network/exos/exos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def main():
result['warnings'] = warnings

config = None
flags = ['detail'] if module.params['defaults'] else []
flags = [' detail'] if module.params['defaults'] else []
diff_ignore_lines = module.params['diff_ignore_lines']

if module.params['backup'] or (module._diff and module.params['diff_against'] == 'running'):
Expand Down

0 comments on commit aedbc98

Please sign in to comment.