aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alicef@gentoo.org>2017-08-07 01:44:49 +0900
committerAlice Ferrazzi <alicef@gentoo.org>2017-08-07 01:44:49 +0900
commit1c82ed8fb31cb1b8d2967f31c34186c7f3c7ae40 (patch)
treeb6684c66a5692fdc681bfaa537f09aa0745f2742
parentrenamed function (diff)
downloadelivepatch-1c82ed8fb31cb1b8d2967f31c34186c7f3c7ae40.tar.gz
elivepatch-1c82ed8fb31cb1b8d2967f31c34186c7f3c7ae40.tar.bz2
elivepatch-1c82ed8fb31cb1b8d2967f31c34186c7f3c7ae40.zip
renamed function
-rw-r--r--elivepatch_client/client/restful.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/elivepatch_client/client/restful.py b/elivepatch_client/client/restful.py
index 987c917..af12f92 100644
--- a/elivepatch_client/client/restful.py
+++ b/elivepatch_client/client/restful.py
@@ -39,7 +39,7 @@ class ManaGer(object):
r = requests.get(url)
print(r.json())
- def send_file(self, temporary_config, patch_fullpath, api):
+ def send_files(self, temporary_config, new_patch_fullpath, incremental_patches, api):
url = self.server_url+ api
# we are sending the file and the UUID
# The server is dividing user by UUID
@@ -51,7 +51,7 @@ class ManaGer(object):
'UUID': self.uuid
}
# Static patch and config filename
- patch_01 = open(patch_fullpath, 'rb')
+ patch_01 = open(new_patch_fullpath, 'rb')
files = [('patch', ('01.patch', patch_01, 'multipart/form-data', {'Expires': '0'})),
('patch', ('02.patch', patch_01, 'multipart/form-data', {'Expires': '0'})),
('patch', ('03.patch', patch_01, 'multipart/form-data', {'Expires': '0'})),