wrgeorge1983 / Pystol

Collection of network management tools written in Python
GNU Lesser General Public License v2.1
6 stars 0 forks source link

clSwitch.Execute() is the sensible way to go... #4

Closed wrgeorge1983 closed 9 years ago

wrgeorge1983 commented 9 years ago

Right now there's a whole mess of "sshrunP(ip, creds, command)", even in clSwitch methods themselves.

That's silly.

lines = self.execute(command)

is the way to go.