]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix JSON `fs ls` output 2615/head
authorJohn Spray <john.spray@redhat.com>
Wed, 1 Oct 2014 11:08:00 +0000 (12:08 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 1 Oct 2014 11:09:16 +0000 (12:09 +0100)
A missing list terminator was causing unparseable output.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/MDSMonitor.cc

index 34216ea1d06038d9ff68ecbd41708fffc50c638f..fe6fe23d97430da4c48ee26879c41c895b54a1cf 100644 (file)
@@ -791,6 +791,7 @@ bool MDSMonitor::preprocess_command(MMonCommand *m)
                 f->dump_int("data_pool_id", *dpi);
               }
             }
+            f->close_section();
 
             f->open_array_section("data_pools");
             {