]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
fix missing key argument on remote function 63/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 5 Sep 2013 14:04:03 +0000 (10:04 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 5 Sep 2013 14:04:03 +0000 (10:04 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/osd.py

index 4cf0b0ac22a4195022efbbb0b2cf4e7ef87b7d5e..178f73730c652e859b703650e9c2a7dc8cd5ba8b 100644 (file)
@@ -48,7 +48,7 @@ def create_osd(conn, logger, cluster, key):
             pid=conn.modules.os.getpid(),
             )
 
-        def write_keyring(tmp, path):
+        def write_keyring(tmp, path, key):
             """ create mon keyring file """
             # file() doesn't let us control access mode from the
             # beginning, and thus would have a race where attacker can
@@ -67,7 +67,7 @@ def create_osd(conn, logger, cluster, key):
             os.rename(tmp, path)
 
         with remote(conn, logger, write_keyring) as remote_func:
-            remote_func(tmp, path)
+            remote_func(tmp, path, key)
 
     return check_call(
         conn,