mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
Merge pull request #35823 from bk201/wip-46245
mgr/cephadm: reconfig ssh after setting or clearing ssh_config Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
This commit is contained in:
commit
faf701d787
@ -706,6 +706,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
|
||||
return -errno.EINVAL, "", "empty ssh config provided"
|
||||
self.set_store("ssh_config", inbuf)
|
||||
self.log.info('Set ssh_config')
|
||||
self._reconfig_ssh()
|
||||
return 0, "", ""
|
||||
|
||||
@orchestrator._cli_write_command(
|
||||
@ -718,6 +719,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
|
||||
self.set_store("ssh_config", None)
|
||||
self.ssh_config_tmp = None
|
||||
self.log.info('Cleared ssh_config')
|
||||
self._reconfig_ssh()
|
||||
return 0, "", ""
|
||||
|
||||
@orchestrator._cli_read_command(
|
||||
|
Loading…
Reference in New Issue
Block a user