From 3001a6ecc2dce17196a522a57fdcc7b1828ae818 Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Thu, 29 Aug 2019 18:32:21 +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 22471e1..61132d2 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") - with open(os.path.expanduser("~/.ssh/known_hosts", "a")) as known_hosts: + 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