From 272b42e8c72137e67f4185cf6b5128944b9833db Mon Sep 17 00:00:00 2001 From: tombo Date: Sun, 26 Nov 2023 21:54:39 +0100 Subject: [PATCH] add error descripiton to crd fix --- prometheus_es_exporter/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/prometheus_es_exporter/__init__.py b/prometheus_es_exporter/__init__.py index e70d8ed..8d5918d 100644 --- a/prometheus_es_exporter/__init__.py +++ b/prometheus_es_exporter/__init__.py @@ -616,7 +616,6 @@ def rolloverAlias(item): status_patch = {"status": {"lastError": now, "lastErrorDescription": err}} updateStatus(item, status_patch) if ev['type'] == 'ADDED' or ev['type'] == 'MODIFIED': - print('EVENT MOD/ADD') template, err = buildTemplate(item) if not template: log.error(f"Bad template {name}") @@ -638,7 +637,6 @@ def rolloverAlias(item): "lastProvision": TEMPLATES_PROVISION_STATUS[templateName]["last_provision"], "lastProvisionedConfigHash": TEMPLATES_PROVISION_STATUS[templateName]["hash"], "lastRollover": TEMPLATES_PROVISION_STATUS[templateName]["last_rollover"], - "lastError": "", "lastErrorDescription": "" } }) @@ -653,7 +651,6 @@ def rolloverAlias(item): "provisioned": "yes", "lastProvision": now, "lastProvisionedConfigHash": template_hash, - "lastError": "", "lastErrorDescription": "" }} log.info(f"Updating ES {template}, {name} sucessfull")