[libvirt] [jenkins-ci PATCH v2 04/20] quayadmin: Tweak show-repo output format

Andrea Bolognani abologna at redhat.com
Wed Jul 17 13:49:13 UTC 2019


We're going to introduce several other show-* commands later,
and we want their output to be more or less consistent, so
start by tweaking the existing command.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 guests/quayadmin | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/guests/quayadmin b/guests/quayadmin
index 3e6cc87..536fbaf 100755
--- a/guests/quayadmin
+++ b/guests/quayadmin
@@ -88,7 +88,10 @@ def run_show_repo(args):
 
     info = res.json()
 
-    print("{}/{}: {}".format(args.namespace, args.repo, info["description"]))
+    print("repo:")
+    print("  namespace: {}".format(args.namespace))
+    print("  repo: {}".format(args.repo))
+    print("  description: {}".format(info["description"]))
 
 
 def run_create_repo(args):
-- 
2.21.0




More information about the libvir-list mailing list