Commit b42d762d authored by Matthias's avatar Matthias
Browse files

codestyle

parent 994c9ae3
Pipeline #34522 passed with stages
in 1 minute and 40 seconds
......@@ -14,6 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import os
import json
from import_api_app.helm import Helm
from import_api_app.helpers.error import ImportApiError
......@@ -66,7 +67,7 @@ class DeleteService:
raise ImportApiError(message)
def do_helm_install(self, set_values, dryrun):
self.logger.debug(
self.logger.error(
'calling delete service: type=' +
set_values['deleteObject'] +
' / id=' + set_values['deleteId'] +
......@@ -79,10 +80,12 @@ class DeleteService:
if dryrun:
job_args.append('--dry-run')
job_args = {'jobArgs': job_args}
return self.helm.install( # noqa: F841
cp = self.helm.install( # noqa: F841
chart=os.path.join(self.root_path, "charts", 'dd-marker-prod'),
name=set_values['sessionId'] + '-deleter',
namespace=self.namespace,
set_values=job_args,
fail_on_err=False
)
retJson = {'returncode': cp.returncode, 'stdout': cp.stdout, 'stderr': cp.stderr}
return json.dumps(retJson, ensure_ascii=True, indent=2)
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