Skip to content

Commit

Permalink
syntax correction
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravmendix committed Nov 27, 2023
1 parent 080786d commit 973b401
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildpack/telemetry/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ def micrometer_metrics_enabled(runtime_version):
"""Check for metrics from micrometer."""
logging.info("checking is micrometer metrics enabled")
micrometer_enabled=False
if(_micrometer_runtime_requirement(runtime_version))
if(_micrometer_runtime_requirement(runtime_version)):
logging.info("satisfies micrometer runtime requirement")
if(bool(get_micrometer_metrics_url()))
if(bool(get_micrometer_metrics_url())):
logging.info("Found micrometer metrics url configured")
micrometer_enabled = True
elif(strtobool(os.getenv("NON_MENDIX_PUBLIC_CLOUD","false")))
elif(strtobool(os.getenv("NON_MENDIX_PUBLIC_CLOUD","false"))):
logging.info("micrometer for non mendix public cloud")
micrometer_enabled = True
return micrometer_enabled
Expand Down

0 comments on commit 973b401

Please sign in to comment.