From a1456d8c3e3090c7a94db0fc3fc2177bf83eaaf6 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 5 Sep 2013 10:04:03 -0400 Subject: [PATCH] fix missing key argument on remote function Signed-off-by: Alfredo Deza --- ceph_deploy/osd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph_deploy/osd.py b/ceph_deploy/osd.py index 4cf0b0a..178f737 100644 --- a/ceph_deploy/osd.py +++ b/ceph_deploy/osd.py @@ -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, -- 2.47.3