diff options
author | Alice Ferrazzi <alice.ferrazzi@gmail.com> | 2017-08-18 16:38:41 +0900 |
---|---|---|
committer | Alice Ferrazzi <alice.ferrazzi@gmail.com> | 2017-08-18 16:38:41 +0900 |
commit | a1c37056683b2277ed9610e517cc7d729b0a339e (patch) | |
tree | ce098023a1ac1d3dd0fbdb6204f96049c0d0b8ff | |
parent | Draft of function for downloading security patches for the current (diff) | |
download | elivepatch-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.py | 3 | ||||
-rw-r--r-- | elivepatch_client/client/restful.py | 12 |
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() |