diff options
author | Alice Ferrazzi <alicef@gentoo.org> | 2017-07-05 00:48:46 +0000 |
---|---|---|
committer | Alice Ferrazzi <alicef@gentoo.org> | 2017-07-05 00:48:46 +0000 |
commit | 086b3b2ee8cc322df59b0fed3ee7a10f2fa3f7d7 (patch) | |
tree | d3a7a683377f382f0ebffcce992a3d8b06cdbdbd | |
parent | small changes (diff) | |
download | elivepatch-086b3b2ee8cc322df59b0fed3ee7a10f2fa3f7d7.tar.gz elivepatch-086b3b2ee8cc322df59b0fed3ee7a10f2fa3f7d7.tar.bz2 elivepatch-086b3b2ee8cc322df59b0fed3ee7a10f2fa3f7d7.zip |
small fix
-rw-r--r-- | elivepatch_client/client/checkers.py | 4 | ||||
-rw-r--r-- | elivepatch_client/client/restful.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/elivepatch_client/client/checkers.py b/elivepatch_client/client/checkers.py index b01a6a8..0afb364 100644 --- a/elivepatch_client/client/checkers.py +++ b/elivepatch_client/client/checkers.py @@ -94,7 +94,7 @@ class Kernel(object): print('no UserID') # send only uncompressed config - replay = self.rest_manager.send_file(self.config, file, '/elivepatch/api/v1.0/patch') + replay = self.rest_manager.send_file(self.patch, file, '/elivepatch/api/v1.0/patch') print(replay) # get userid returned from the server @@ -155,7 +155,7 @@ class FileAction(object): s = in_file.read() # Store uncompressed file path_to_store = store_file_path[:-3] # remove the filename extension - with open(path_to_store, 'w') as f: + with open(path_to_store, 'wb') as f: f.write(s) print('working') path, uncompressed_file = (os.path.split(path_to_store)) diff --git a/elivepatch_client/client/restful.py b/elivepatch_client/client/restful.py index 0c3384f..25be666 100644 --- a/elivepatch_client/client/restful.py +++ b/elivepatch_client/client/restful.py @@ -59,7 +59,7 @@ class ManaGer(object): url = self.server_url+'/elivepatch/api/v1.0/get_livepatch' payload = { 'KernelVersion': self.kernel_version, - 'UserID' : 'test-0001' + 'UserID' : self.user_id } r = requests.get(url, json=payload) if r.status_code == requests.codes.ok: # livepatch returned ok |