Commit 9112c185 authored by Lionel Walter's avatar Lionel Walter
Browse files

Use snake case in JobStart and JobStop

parent c1c2ca61
Pipeline #10133 passed with stages
in 55 minutes and 57 seconds
......@@ -20,11 +20,11 @@ class JobStart(Resource):
job_parameters['recordSetId'] = record_set_id
job_parameters['processId'] = process_id
helmClient = helm.Helm()
helm_client = helm.Helm()
helm_name = generate_helm_name(process_id, job_name)
try:
output = helmClient.install(
output = helm_client.install(
chart=os.path.join(current_app.root_path, "charts", job_name),
name=helm_name,
namespace=current_app.config['NAMESPACE'],
......
......@@ -9,12 +9,12 @@ class JobStop(Resource):
# @swag.validate('job-parameters')
@swag_from('JobStop.yml')
def delete(self, process_id, job_name):
helmClient = helm.Helm()
helm_client = helm.Helm()
helm_name = generate_helm_name(process_id, job_name)
try:
output = helmClient.uninstall(
output = helm_client.uninstall(
name=helm_name,
namespace=current_app.config['NAMESPACE'],
fail_on_err=False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment