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

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

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
  $ quayadmin show-repo libvirt buildenv-debian-10
    namespace: libvirt
    repo: buildenv-debian-10

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

diff --git a/guests/quayadmin b/guests/quayadmin
index 536fbaf..6eeacd1 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):

More information about the libvir-list mailing list