From f4d4850a58cdf3b2a2d0019b58d51022f30b3195 Mon Sep 17 00:00:00 2001 From: Andrey Pavlov Date: Wed, 21 Oct 2015 13:45:07 +0300 Subject: Making parameters of job binaries create optional 'description' and 'extra' parameters of job binaries create method should not be required. This change doesn't break backward compatibility. Change-Id: I11c4933961482c87508615c2f7fb58db8456efed Closes-bug: #1508406 --- saharaclient/api/job_binaries.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'saharaclient/api') diff --git a/saharaclient/api/job_binaries.py b/saharaclient/api/job_binaries.py index 371f03a..5a54534 100644 --- a/saharaclient/api/job_binaries.py +++ b/saharaclient/api/job_binaries.py @@ -23,17 +23,15 @@ class JobBinaries(base.Resource): class JobBinariesManager(base.ResourceManager): resource_class = JobBinaries - def create(self, name, url, description, extra, is_public=None, + def create(self, name, url, description=None, extra=None, is_public=None, is_protected=None): data = { "name": name, - "url": url, - "description": description, - "extra": extra + "url": url } - self._copy_if_defined(data, is_public=is_public, - is_protected=is_protected) + self._copy_if_defined(data, description=description, extra=extra, + is_public=is_public, is_protected=is_protected) return self._create('/job-binaries', data, 'job_binary') -- cgit v1.2.1