mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
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
This commit is contained in:
parent
b1666020a9
commit
936bca9fc6
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class EosConfigMixin(object):
|
||||||
def supports_sessions(self):
|
def supports_sessions(self):
|
||||||
try:
|
try:
|
||||||
if isinstance(self, Eapi):
|
if isinstance(self, Eapi):
|
||||||
self.execute('show configuration sessions', output='text')
|
self.execute(['show configuration sessions'], output='text')
|
||||||
else:
|
else:
|
||||||
self.execute('show configuration sessions')
|
self.execute('show configuration sessions')
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue