[jenkins-ci PATCH 05/20] quayadmin: Tweak list-repos output format

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

 



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

More specifically, we want the output of each list-* command
to be such that you can take one of the lines, append it to
the arguments you just used and by doing so obtain a valid
list of arguments for the corresponding show-* command, eg.

  $ quayadmin list-repos libvirt
  buildenv-debian-10
  $ quayadmin show-repo libvirt buildenv-debian-10
  repo:
    namespace: libvirt
    repo: buildenv-debian-10
  $

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 guests/quayadmin | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guests/quayadmin b/guests/quayadmin
index cec0e64..ed10bfc 100755
--- a/guests/quayadmin
+++ b/guests/quayadmin
@@ -73,7 +73,7 @@ def run_list_repos(args):
 
     info = res.json()
     for repo in info["repositories"]:
-        print ("{}/{}".format(repo["namespace"], repo["name"]))
+        print ("{}".format(repo["name"]))
 
 
 def run_show_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