From a60507a215bf3e6216af785ff971fa8090227f74 Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Thu, 29 Aug 2019 18:37:44 +0500 Subject: [PATCH] a --- app/ceph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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