]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: create async function _write_remote_file to write files on remote host
authorMelissa <li.melissa.kun@gmail.com>
Tue, 20 Jul 2021 21:22:00 +0000 (17:22 -0400)
committerMelissa Li <li.melissa.kun@gmail.com>
Fri, 20 Aug 2021 18:27:45 +0000 (14:27 -0400)
commitbe6673d1d7c7b1198f19d70fb83fe96fe4a22566
treed8a505ace205d1eaa4ca3abbf46c5836edb245da
parent4c84e71f4350e9fd7c12944491b99eff02e8dbb2
mgr/cephadm: create async function _write_remote_file to write files on remote host

_write_remote_file uses _check_execute_command in ssh.py which calls _execute_command which uses shlex quote. Thus, any commands with an int will need to be transformed into a str because shlex quote does not take int objects

Fixes: https://tracker.ceph.com/issues/44676
Signed-off-by: Melissa Li <li.melissa.kun@gmail.com>
src/pybind/mgr/cephadm/ssh.py