summaryrefslogtreecommitdiff
path: root/saharaclient
diff options
context:
space:
mode:
authorAndrey Pavlov <apavlov@mirantis.com>2015-10-21 13:45:07 +0300
committerAndrey Pavlov <apavlov@mirantis.com>2015-10-21 13:45:07 +0300
commitf4d4850a58cdf3b2a2d0019b58d51022f30b3195 (patch)
tree075f1c92eaf6aef4522a99adea18fe9d577787ab /saharaclient
parent29fe1b98e7fe676b7f6fa7d17f6931b36a58b6fb (diff)
downloadpython-saharaclient-f4d4850a58cdf3b2a2d0019b58d51022f30b3195.tar.gz
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
Diffstat (limited to 'saharaclient')
-rw-r--r--saharaclient/api/job_binaries.py10
1 files changed, 4 insertions, 6 deletions
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')