From: songweibin Date: Mon, 5 Feb 2018 10:19:41 +0000 (+0800) Subject: rbd: do not show title if there is no group snapshot X-Git-Tag: v13.0.2~313^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c56f718d94b102c4a3e1fed3357870e615dd3d63;p=ceph.git rbd: do not show title if there is no group snapshot Signed-off-by: songweibin --- diff --git a/src/tools/rbd/action/Group.cc b/src/tools/rbd/action/Group.cc index 4cecce6c644..1d77cef5739 100644 --- a/src/tools/rbd/action/Group.cc +++ b/src/tools/rbd/action/Group.cc @@ -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;