]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: fix os.mkdir call 31320/head
authorSage Weil <sage@redhat.com>
Fri, 1 Nov 2019 14:05:49 +0000 (09:05 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Nov 2019 14:05:49 +0000 (09:05 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon

index 71cd85f9547b7d88b1227f0b4e1d15dc1c871b7d..aa9e82261aa5a41af8f3bb76e3bacb0ae4255e85 100755 (executable)
@@ -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')