]> git.apps.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)
committerSage Weil <sage@inktank.com>
Fri, 14 Sep 2012 19:31:03 +0000 (12:31 -0700)
Signed-off-by: Tommi Virtanen <tv@inktank.com>
src/ceph-create-keys

index 7c56b0e8a52a13298379d4a594f4ee19ceb0e6bb..50a97dfb4ad1f8e912dfb6f166a6c5b66e8b6554 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:
@@ -138,6 +137,7 @@ def main():
         level=loglevel,
         )
 
+    wait_for_quorum(cluster=args.cluster, mon_id=args.id)
     get_key(cluster=args.cluster, mon_id=args.id)