def handle_command(self, inbuf, command):
if command["prefix"] == "ssh set-ssh-config":
- return self._set_ssh_config(inbuf, command)
+ return self._set_ssh_config(inbuf)
elif command["prefix"] == "ssh clear-ssh-config":
- return self._clear_ssh_config(inbuf, command)
+ return self._clear_ssh_config()
else:
raise NotImplementedError(command["prefix"])
", ".join(map(lambda h: "'{}'".format(h),
unregistered_hosts))))
- def _set_ssh_config(self, inbuf, command):
+ def _set_ssh_config(self, inbuf):
"""
Set an ssh_config file provided from stdin
self.set_store("ssh_config", inbuf)
return 0, "", ""
- def _clear_ssh_config(self, inbuf, command):
+ def _clear_ssh_config(self):
"""
Clear the ssh_config file provided from stdin
"""