From 936bca9fc64bcf98763949b3d2f11e646fb2a1ac Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Thu, 13 Oct 2016 15:46:39 -0400 Subject: [PATCH] fixes issue when checking if sessions are supported (#18013) the supports_sessions() call was sending the command as a string instead of a list which is required when transport is eapi. This fixes that bug --- lib/ansible/module_utils/eos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py index e1d926f1335..3439f36f7df 100644 --- a/lib/ansible/module_utils/eos.py +++ b/lib/ansible/module_utils/eos.py @@ -125,7 +125,7 @@ class EosConfigMixin(object): def supports_sessions(self): try: if isinstance(self, Eapi): - self.execute('show configuration sessions', output='text') + self.execute(['show configuration sessions'], output='text') else: self.execute('show configuration sessions') return True