This commit is contained in:
ahmadbilalkhalid 2019-08-29 18:41:21 +05:00
parent f7b4e5444d
commit 87f7767af5

View file

@ -20,7 +20,7 @@ def setup(ceph_url, ssh_username):
keys = p.decode("utf-8").strip().split("\n")
keys = "\n".join(keys)
with open(os.path.expanduser("~/.ssh/known_hosts"), "a") as known_hosts:
known_hosts.write(keys)
known_hosts.write(keys)
os.makedirs("/etc/ceph", exist_ok=True)
command = f"sftp -b ./ceph_batch_cmd {ssh_username}@{ceph_url}:/etc/ceph"