]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-create-keys: Refactor to share wait_for_quorum call.
authorTommi Virtanen <tv@inktank.com>
Thu, 13 Sep 2012 18:34:03 +0000 (11:34 -0700)
committerTommi Virtanen <tv@inktank.com>
Fri, 5 Oct 2012 18:09:06 +0000 (11:09 -0700)
Signed-off-by: Tommi Virtanen <tv@inktank.com>
src/ceph-create-keys

index f78ba3cbefe0e452f758a53f9aceb01dc0ee9160..438e51d307679151473dac0c0ce42f822b61d481 100755 (executable)
@@ -55,7 +55,6 @@ def get_key(cluster, mon_id):
         path=path,
         pid=os.getpid(),
         )
-    wait_for_quorum(cluster=cluster, mon_id=mon_id)
     while True:
         try:
             with file(tmp, 'w') as f:
@@ -189,6 +188,7 @@ def main():
         level=loglevel,
         )
 
+    wait_for_quorum(cluster=args.cluster, mon_id=args.id)
     get_key(cluster=args.cluster, mon_id=args.id)
     bootstrap_key(
         cluster=args.cluster,