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

Andrea Bolognani posted 20 patches 6 years, 5 months ago
[libvirt] [jenkins-ci PATCH v2 04/20] quayadmin: Tweak show-repo output format
Posted by Andrea Bolognani 6 years, 5 months ago
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@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [jenkins-ci PATCH v2 04/20] quayadmin: Tweak show-repo output format
Posted by Daniel P. Berrangé 6 years, 5 months ago
On Wed, Jul 17, 2019 at 03:49:13PM +0200, Andrea Bolognani wrote:
> 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@redhat.com>
> ---
>  guests/quayadmin | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

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