[jenkins-ci PATCH 11/20] quayadmin: Add support for the PUT method

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

 



We're going to need it for some specific Quay APIs later on.

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

diff --git a/guests/quayadmin b/guests/quayadmin
index 4e60653..9f1b7d4 100755
--- a/guests/quayadmin
+++ b/guests/quayadmin
@@ -87,6 +87,10 @@ def post(config, endpoint, payload=None, debug=False):
     return request(config, endpoint, method=requests.post, payload=payload, debug=debug)
 
 
+def put(config, endpoint, payload=None, debug=False):
+    return request(config, endpoint, method=requests.put, payload=payload, debug=debug)
+
+
 def has_error(quiet, res, expected, message):
     if res.status_code == expected:
         return False
-- 
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