From: Sage Weil Date: Fri, 1 Nov 2019 14:05:49 +0000 (-0500) Subject: ceph-daemon: fix os.mkdir call X-Git-Tag: v15.1.0~1087^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7dc77f680602f4a03cdcf2a66bc37d3b9f1419fe;p=ceph-ci.git ceph-daemon: fix os.mkdir call Signed-off-by: Sage Weil --- diff --git a/src/ceph-daemon b/src/ceph-daemon index 71cd85f9547..aa9e82261aa 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')