]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/ssh: remove superfluous parameters 31462/head
authorJoshua Schmid <jschmid@suse.de>
Thu, 7 Nov 2019 12:44:20 +0000 (13:44 +0100)
committerJoshua Schmid <jschmid@suse.de>
Thu, 7 Nov 2019 12:44:20 +0000 (13:44 +0100)
in _set_ssh_config and _clear_ssh_config

Signed-off-by: Joshua Schmid <jschmid@suse.de>
src/pybind/mgr/ssh/module.py

index 76dfc02d62d197fddfe7f6aec0b3803affa8538c..a2c0e71f6e403cac21249f23cbd3d5a3be8d35b5 100644 (file)
@@ -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
         """