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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 guests/quayadmin | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/guests/quayadmin b/guests/quayadmin
index 980fc1b..cec0e64 100755
--- a/guests/quayadmin
+++ b/guests/quayadmin
@@ -85,7 +85,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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux