From: Joshua Schmid Date: Thu, 7 Nov 2019 12:44:20 +0000 (+0100) Subject: mgr/ssh: remove superfluous parameters X-Git-Tag: v15.1.0~1003^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c26218fd306edb2633fb2182bbb410a0dab89c2f;p=ceph.git mgr/ssh: remove superfluous parameters in _set_ssh_config and _clear_ssh_config Signed-off-by: Joshua Schmid --- diff --git a/src/pybind/mgr/ssh/module.py b/src/pybind/mgr/ssh/module.py index 76dfc02d62d1..a2c0e71f6e40 100644 --- a/src/pybind/mgr/ssh/module.py +++ b/src/pybind/mgr/ssh/module.py @@ -249,9 +249,9 @@ class SSHOrchestrator(MgrModule, orchestrator.Orchestrator): 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"]) @@ -299,7 +299,7 @@ class SSHOrchestrator(MgrModule, orchestrator.Orchestrator): ", ".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 @@ -311,7 +311,7 @@ class SSHOrchestrator(MgrModule, orchestrator.Orchestrator): 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 """