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
(cherry picked from commit 936bca9fc6)
pull/18119/head
Peter Sprygada 9 years ago committed by Peter Sprygada
parent 6d909bd65c
commit a94db01b89

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

Loading…
Cancel
Save