From 6066c28ef00ce7031432a31cd021ea4d619f5ef5 Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Thu, 29 Aug 2019 17:26:25 +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 2a1fd27..19c6a2f 100644 --- a/app/ceph.py +++ b/app/ceph.py @@ -11,6 +11,6 @@ def ceph(): @click.option("--ceph_url", required=True) @click.option("--ssh_username", required=True) def setup(ceph_url, ssh_username): - os.makedirs("/etc/ceph") + os.makedirs("/etc/ceph", exist_ok=True) command = f"sftp -b ./ceph_batch_cmd {ssh_username}@{ceph_url}:/etc/ceph" subprocess.check_output(command.split()) \ No newline at end of file