From 044923e4aefd7326addefe9863f96e5c87d1c1fb Mon Sep 17 00:00:00 2001 From: Lindsay Hill Date: Sun, 7 Jul 2019 20:58:53 -0700 Subject: [PATCH] Fix broken slxos_config due to changed backup options (#58804) (cherry picked from commit 5b2d1cc24d9482e8777b324e824aaa2e43b6e538) --- changelogs/fragments/slxos_config_fix.yaml | 2 ++ lib/ansible/plugins/action/slxos_config.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/slxos_config_fix.yaml diff --git a/changelogs/fragments/slxos_config_fix.yaml b/changelogs/fragments/slxos_config_fix.yaml new file mode 100644 index 00000000000..9859b2357c0 --- /dev/null +++ b/changelogs/fragments/slxos_config_fix.yaml @@ -0,0 +1,2 @@ +bugfixes: +- Fix broken slxos_config due to changed backup options (https://github.com/ansible/ansible/pull/58804). diff --git a/lib/ansible/plugins/action/slxos_config.py b/lib/ansible/plugins/action/slxos_config.py index 3321f594009..03104f50061 100644 --- a/lib/ansible/plugins/action/slxos_config.py +++ b/lib/ansible/plugins/action/slxos_config.py @@ -22,8 +22,6 @@ __metaclass__ = type import re from ansible.plugins.action.network import ActionModule as ActionNetworkModule -from ansible.module_utils._text import to_text -from ansible.module_utils.network.common.backup import write_backup, handle_template PRIVATE_KEYS_RE = re.compile('__.+__')