diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-10-21 12:18:22 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-10-21 12:18:22 +0000 |
commit | 978bb44920039369ab0a2ace163b20ef2e299515 (patch) | |
tree | a05842fd270aca30507139c921041db618fe0847 /saharaclient/api | |
parent | 10154f055568744a5ed86e9a8b27ac23885fa58a (diff) | |
parent | dd57defe92b1945f9658e864d85b260da89f089b (diff) | |
download | python-saharaclient-978bb44920039369ab0a2ace163b20ef2e299515.tar.gz |
Merge "Making parameters of job create optional"
Diffstat (limited to 'saharaclient/api')
-rw-r--r-- | saharaclient/api/jobs.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/saharaclient/api/jobs.py b/saharaclient/api/jobs.py index 0e5bbec..b352772 100644 --- a/saharaclient/api/jobs.py +++ b/saharaclient/api/jobs.py @@ -23,18 +23,16 @@ class Job(base.Resource): class JobsManager(base.ResourceManager): resource_class = Job - def create(self, name, type, mains, libs, description, interface=None, - is_public=None, is_protected=None): + def create(self, name, type, mains=None, libs=None, description=None, + interface=None, is_public=None, is_protected=None): data = { 'name': name, - 'type': type, - 'description': description, - 'mains': mains, - 'libs': libs, + 'type': type } - self._copy_if_defined(data, interface=interface, is_public=is_public, - is_protected=is_protected) + self._copy_if_defined(data, description=description, mains=mains, + libs=libs, interface=interface, + is_public=is_public, is_protected=is_protected) return self._create('/jobs', data, 'job') |