aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alice.ferrazzi@gmail.com>2017-08-18 16:38:41 +0900
committerAlice Ferrazzi <alice.ferrazzi@gmail.com>2017-08-18 16:38:41 +0900
commita1c37056683b2277ed9610e517cc7d729b0a339e (patch)
treece098023a1ac1d3dd0fbdb6204f96049c0d0b8ff
parentDraft of function for downloading security patches for the current (diff)
downloadelivepatch-a1c37056683b2277ed9610e517cc7d729b0a339e.tar.gz
elivepatch-a1c37056683b2277ed9610e517cc7d729b0a339e.tar.bz2
elivepatch-a1c37056683b2277ed9610e517cc7d729b0a339e.zip
build_livepatch as been merged with send_files() so is not needed anymore
-rw-r--r--elivepatch_client/client/checkers.py3
-rw-r--r--elivepatch_client/client/restful.py12
2 files changed, 0 insertions, 15 deletions
diff --git a/elivepatch_client/client/checkers.py b/elivepatch_client/client/checkers.py
index ed8bf97..f3f0750 100644
--- a/elivepatch_client/client/checkers.py
+++ b/elivepatch_client/client/checkers.py
@@ -73,9 +73,6 @@ class Kernel(object):
# send uncompressed config and patch files fullpath
self.rest_manager.send_files(temporary_config, self.main_patch_fullpath, incremental_patches_list, send_api)
- def build_livepatch(self):
- self.rest_manager.build_livepatch()
-
def get_livepatch(self):
self.rest_manager.get_livepatch(self.main_patch_fullpath)
diff --git a/elivepatch_client/client/restful.py b/elivepatch_client/client/restful.py
index e11d8ba..291e393 100644
--- a/elivepatch_client/client/restful.py
+++ b/elivepatch_client/client/restful.py
@@ -75,18 +75,6 @@ class ManaGer(object):
temporary_config.close()
return response_dict
- def build_livepatch(self):
- url = self.server_url+'/elivepatch/api/v1.0/build_livepatch'
- payload = {
- 'KernelVersion': self.kernel_version,
- 'UUID' : self.uuid
- }
- try:
- response = requests.post(url, json=payload)
- print(response.json())
- except:
- self._catching_exceptions_exit(self.build_livepatch)
-
def get_livepatch(self, patch_folder):
from io import BytesIO
patch_manager = patch.ManaGer()