1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Peter Sprygada 2016-10-13 15:46:39 -04:00 committed by GitHub
parent b1666020a9
commit 936bca9fc6

View file

@ -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