summaryrefslogtreecommitdiff
path: root/saharaclient/osc/v1/jobs.py
diff options
context:
space:
mode:
Diffstat (limited to 'saharaclient/osc/v1/jobs.py')
-rw-r--r--saharaclient/osc/v1/jobs.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/saharaclient/osc/v1/jobs.py b/saharaclient/osc/v1/jobs.py
index a232c1f..576c7ff 100644
--- a/saharaclient/osc/v1/jobs.py
+++ b/saharaclient/osc/v1/jobs.py
@@ -368,11 +368,12 @@ class UpdateJob(show.ShowOne):
self.log.debug("take_action(%s)" % parsed_args)
client = self.app.client_manager.data_processing
- data = client.job_executions.update(
- parsed_args.job,
+ update_dict = utils.create_dict_from_kwargs(
is_public=parsed_args.is_public,
- is_protected=parsed_args.is_protected
- ).job_execution
+ is_protected=parsed_args.is_protected)
+
+ data = client.job_executions.update(
+ parsed_args.job, **update_dict).job_execution
_format_job_output(data)
data = utils.prepare_data(data, JOB_FIELDS)