]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: do not show title if there is no group snapshot 20311/head
authorsongweibin <song.weibin@zte.com.cn>
Mon, 5 Feb 2018 10:19:41 +0000 (18:19 +0800)
committersongweibin <song.weibin@zte.com.cn>
Mon, 5 Feb 2018 10:20:35 +0000 (18:20 +0800)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/tools/rbd/action/Group.cc

index 4cecce6c6442d872a0406fbd127b15632cd8dab7..1d77cef5739d03744393b1161afd8cc17648fbd5 100644 (file)
@@ -536,7 +536,7 @@ int execute_group_snap_list(const po::variables_map &vm,
   if (f) {
     f->close_section();
     f->flush(std::cout);
-  } else {
+  } else if (snaps.size()) {
     std::cout << t;
   }
   return 0;