diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py index 4da1a0b7f9..9d58159c75 100644 --- a/lib/ansible/module_utils/eos.py +++ b/lib/ansible/module_utils/eos.py @@ -296,7 +296,7 @@ class Eapi: commands = to_list(commands) if self._enable: - commands.insert(0, 'enable') + commands.insert(0, self._enable) body = self._request_builder(commands, output) data = self._module.jsonify(body)