From aedbc98735f9dbdd62c11c7e6862ea919bb3b3cd Mon Sep 17 00:00:00 2001 From: EdificomSA <118285649+EdificomSA@users.noreply.github.com> Date: Wed, 15 Feb 2023 10:30:10 +0100 Subject: [PATCH] Missing whitespace for exos_config with defaults: True (#516) * Missing whitespace for exos_config with defaults: True Solves #513 * changelog * changelog yaml error * Update changelogs/fragments/516-whitespace-exos-config-defaults.yaml Co-authored-by: Andrew Klychkov --------- Co-authored-by: Yannis Ansermoz Co-authored-by: Andrew Klychkov (cherry picked from commit 18340ef55e566ac49921ae139d2383350fea5a06) --- changelogs/fragments/516-whitespace-exos-config-defaults.yaml | 2 ++ plugins/modules/network/exos/exos_config.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/516-whitespace-exos-config-defaults.yaml diff --git a/changelogs/fragments/516-whitespace-exos-config-defaults.yaml b/changelogs/fragments/516-whitespace-exos-config-defaults.yaml new file mode 100644 index 00000000..ee67b036 --- /dev/null +++ b/changelogs/fragments/516-whitespace-exos-config-defaults.yaml @@ -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)." \ No newline at end of file diff --git a/plugins/modules/network/exos/exos_config.py b/plugins/modules/network/exos/exos_config.py index ca6a3ca9..ad589f61 100644 --- a/plugins/modules/network/exos/exos_config.py +++ b/plugins/modules/network/exos/exos_config.py @@ -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'):