Skip to content

Commit

Permalink
add error descripiton to crd fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tombokombo committed Nov 26, 2023
1 parent e13457e commit 272b42e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions prometheus_es_exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand All @@ -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": ""
}
})
Expand All @@ -653,7 +651,6 @@ def rolloverAlias(item):
"provisioned": "yes",
"lastProvision": now,
"lastProvisionedConfigHash": template_hash,
"lastError": "",
"lastErrorDescription": ""
}}
log.info(f"Updating ES {template}, {name} sucessfull")
Expand Down

0 comments on commit 272b42e

Please sign in to comment.