From fff397b795cdadfae83df383f28e67af749206f9 Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Thu, 29 Aug 2019 18:33:20 +0500 Subject: [PATCH] a --- app/ceph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ceph.py b/app/ceph.py index 61132d2..f982802 100644 --- a/app/ceph.py +++ b/app/ceph.py @@ -17,7 +17,7 @@ def setup(ceph_url, ssh_username): subprocess.check_output(command.split()) except Exception: p = subprocess.check_output(f"ssh-keyscan {ceph_url}".split()) - keys = p.decode("utf-8").strip().split("\n") + keys = p.decode("utf-8").split("\n") with open(os.path.expanduser("~/.ssh/known_hosts"), "a") as known_hosts: for key in keys: known_hosts.write(key) \ No newline at end of file