Commit 3243fba4 authored by Matthias's avatar Matthias
Browse files

adjustments for delete-service

parent 95261d7f
Pipeline #33782 passed with stages
in 2 minutes and 6 seconds
......@@ -29,7 +29,7 @@ class DeleteService(Resource):
'deleteId': record_id
}
try:
self.do_helm_install(set_values, session_id, dryrun)
self.do_helm_install(set_values, dryrun)
except Exception as ex:
message = str(ex)
current_app.logger.error(message)
......@@ -44,7 +44,7 @@ class DeleteService(Resource):
'deleteId': recordset_id
}
try:
self.do_helm_install(set_values, session_id, dryrun)
self.do_helm_install(set_values, dryrun)
except Exception as ex:
message = str(ex)
current_app.logger.error(message)
......@@ -59,7 +59,7 @@ class DeleteService(Resource):
'deleteId': institution_id,
}
try:
self.do_helm_install(set_values, session_id, dryrun)
self.do_helm_install(set_values, dryrun)
except Exception as ex:
message = str(ex)
current_app.logger.error(message)
......@@ -68,7 +68,7 @@ class DeleteService(Resource):
return 0
@staticmethod
def do_helm_install(set_values, session_id, dryrun):
def do_helm_install(set_values, dryrun):
current_app.logger.debug(
'calling delete service: type=' +
set_values['deleteObject'] +
......@@ -84,8 +84,8 @@ class DeleteService(Resource):
jobArgs = {'jobArgs': jobArgs}
helm = Helm()
response = helm.install( # noqa: F841
chart=os.path.join(current_app.root_path, "charts", 'import-process-delete'),
name='import-process-delete-' + session_id,
chart=os.path.join(current_app.root_path, "charts", 'dd-marker-prod'),
name='import-process-delete-' + set_values['sessionId'],
namespace=current_app.config['NAMESPACE'],
set_values=jobArgs,
fail_on_err=False
......
Supports Markdown
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