diff --git a/openstack_dashboard/contrib/sahara/api/sahara.py b/openstack_dashboard/contrib/sahara/api/sahara.py index a325db9ec0..250882cbed 100644 --- a/openstack_dashboard/contrib/sahara/api/sahara.py +++ b/openstack_dashboard/contrib/sahara/api/sahara.py @@ -380,13 +380,14 @@ def job_binary_internal_delete(request, jbi_id): client(request).job_binary_internals.delete(job_binary_id=jbi_id) -def job_create(request, name, j_type, mains, libs, description): +def job_create(request, name, j_type, mains, libs, description, interface): return client(request).jobs.create( name=name, type=j_type, mains=mains, libs=libs, - description=description) + description=description, + interface=interface) def job_list(request, search_opts=None): @@ -406,13 +407,15 @@ def job_get_configs(request, job_type): def job_execution_create(request, job_id, cluster_id, - input_id, output_id, configs): + input_id, output_id, configs, + interface): return client(request).job_executions.create( job_id=job_id, cluster_id=cluster_id, input_id=input_id, output_id=output_id, - configs=configs) + configs=configs, + interface=interface) def _resolve_job_execution_names(job_execution, cluster=None, diff --git a/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/job_interface_arguments_template.html b/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/job_interface_arguments_template.html new file mode 100644 index 0000000000..db141d6c5c --- /dev/null +++ b/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/job_interface_arguments_template.html @@ -0,0 +1,43 @@ +{% load i18n %} + + + + + + + + + + +
+
+
+
+ diff --git a/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/jobs.html b/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/jobs.html index 5e3c16ee55..39ed81f5bd 100644 --- a/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/jobs.html +++ b/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/jobs.html @@ -34,9 +34,6 @@ $navbar.hide(); } - $(".hidden_nodegroups_field").val(""); - $(".hidden_configure_field").val(""); - lower_limit = 0; $(".count-field").change(); if ($(modal).find(".hidden_create_field").length > 0) { diff --git a/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/library_template.html b/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/library_template.html index 26fb097708..a3a6b3c86f 100644 --- a/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/library_template.html +++ b/openstack_dashboard/contrib/sahara/content/data_processing/jobs/templates/data_processing.jobs/library_template.html @@ -1,7 +1,7 @@ {% load i18n %}