diff options
author | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-23 14:07:11 +0900 |
---|---|---|
committer | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-23 14:07:11 +0900 |
commit | f0e15a24e4ddf936e2be6cc9d525776cf6592841 (patch) | |
tree | 9ced4e27c4525eda8d97330ab46ec04c66521ddf /elivepatch_client/client/restful.py | |
parent | removed basic auth (diff) | |
download | elivepatch-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.py | 5 |
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 |