[libvirt] [jenkins-ci PATCH v2 06/20] quayadmin: Build endpoint, params and payload separately

Daniel P. Berrangé berrange at redhat.com
Wed Jul 17 17:17:30 UTC 2019


On Wed, Jul 17, 2019 at 03:49:15PM +0200, Andrea Bolognani wrote:
> Instead of building all arguments for a request at the same
> time as the request itself is prepared, build them beforehand
> and then pass them to the corresponding function.
> 
> This makes the code more readable, especially when complex
> params or long endpoints are involved.
> 
> Signed-off-by: Andrea Bolognani <abologna at redhat.com>
> ---
>  guests/quayadmin | 23 ++++++++++++++++++-----
>  1 file changed, 18 insertions(+), 5 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at 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 :|




More information about the libvir-list mailing list