aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alicef@gentoo.org>2017-06-23 14:07:11 +0900
committerAlice Ferrazzi <alicef@gentoo.org>2017-06-23 14:07:11 +0900
commitf0e15a24e4ddf936e2be6cc9d525776cf6592841 (patch)
tree9ced4e27c4525eda8d97330ab46ec04c66521ddf /elivepatch_client/client/restful.py
parentremoved basic auth (diff)
downloadelivepatch-f0e15a24e4ddf936e2be6cc9d525776cf6592841.tar.gz
elivepatch-f0e15a24e4ddf936e2be6cc9d525776cf6592841.tar.bz2
elivepatch-f0e15a24e4ddf936e2be6cc9d525776cf6592841.zip
added Json information to the build_livepatch RESTful post
Diffstat (limited to 'elivepatch_client/client/restful.py')
-rw-r--r--elivepatch_client/client/restful.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/elivepatch_client/client/restful.py b/elivepatch_client/client/restful.py
index 0323e46..2e93f78 100644
--- a/elivepatch_client/client/restful.py
+++ b/elivepatch_client/client/restful.py
@@ -22,6 +22,9 @@ class ManaGer(object):
def build_livepatch(self):
url = self.server_url+'/elivepatch/api/v1.0/livepatch'
- r = requests.post(url)
+ payload = {
+ 'KernelVersion': '4.10.16'
+ }
+ r = requests.post(url, json=payload)
print(r.text)
print(r.json()) \ No newline at end of file