From 7dc77f680602f4a03cdcf2a66bc37d3b9f1419fe Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 1 Nov 2019 09:05:49 -0500 Subject: [PATCH] ceph-daemon: fix os.mkdir call Signed-off-by: Sage Weil --- src/ceph-daemon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-daemon b/src/ceph-daemon index 71cd85f9547b7..aa9e82261aa5a 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -1063,7 +1063,7 @@ def command_bootstrap(): logger.info('Adding key to root@localhost\'s authorized_keys...') if not os.path.exists('/root/.ssh'): - os.mkdir('/root/.ssh', mode=0o700) + os.mkdir('/root/.ssh', 0o700) with open('/root/.ssh/authorized_keys', 'a') as f: os.fchmod(f.fileno(), 0o600) # just in case we created it f.write(ssh_pub.strip() + '\n') -- 2.39.5