diff --git a/AUTHORS b/AUTHORS index 12a44f0e..3f315316 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,5 +1,6 @@ Alexander Ignatov Alexander Kuznetsov +Chad Roberts Jeremy Stanley Nikita Konovalov Nikolay Mahotkin diff --git a/savannaclient/api/job_binaries.py b/savannaclient/api/job_binaries.py index 673af73d..6cdf5abe 100644 --- a/savannaclient/api/job_binaries.py +++ b/savannaclient/api/job_binaries.py @@ -41,3 +41,10 @@ class JobBinariesManager(base.ResourceManager): def delete(self, job_binary_id): self._delete('/job-binaries/%s' % job_binary_id) + + def get_file(self, job_binary_id): + resp = self.api.client.get('/job-binaries/%s/data' % job_binary_id) + + if resp.status_code != 200: + self._raise_api_exception(resp) + return resp.content