]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: improve mirror snapshot list formatting for status command
authorMykola Golub <mgolub@suse.com>
Fri, 13 Dec 2019 10:55:00 +0000 (10:55 +0000)
committerMykola Golub <mgolub@suse.com>
Mon, 16 Dec 2019 08:24:30 +0000 (08:24 +0000)
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/tools/rbd/action/MirrorImage.cc

index 606009e2cdd2ad3152df94d75c0abb24aabf629c..ad5a4d9769971a7e87416029787b8eb04ff84bf8 100644 (file)
@@ -497,10 +497,11 @@ int execute_status(const po::variables_map &vm,
         }
 
         first_site = false;
-        std::cout << snap.id << " " << snap.name << " ("
+        std::cout << "    " << snap.id << " " << snap.name << " ("
                   << (info.demoted ? "demoted " : "") << "peer_uuids:["
                   << info.mirror_peer_uuids << "])";
       }
+      std::cout << std::endl;
     }
   }