diff --git a/app/ceph.py b/app/ceph.py index 9fccce1..16f8179 100644 --- a/app/ceph.py +++ b/app/ceph.py @@ -18,6 +18,6 @@ def setup(ceph_url, ssh_username): except Exception: p = subprocess.check_output(f"ssh-keyscan {ceph_url}".split()) keys = p.decode("utf-8").strip().split("\n") - print(keys) + keys = "\n".join(keys) with open(os.path.expanduser("~/.ssh/known_hosts"), "a") as known_hosts: - known_hosts.writelines(keys) \ No newline at end of file + known_hosts.write(keys) \ No newline at end of file