Skip to content

Commit

Permalink
fix: indentation error and default OpenTelemetry port number
Browse files Browse the repository at this point in the history
  • Loading branch information
dalpasso committed Dec 15, 2023
1 parent 49c0ca7 commit 08eee64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/eodag-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Return the proper EODAG server image name
{{- end -}}

{{/*
Return the proper EODAG server image name
Return the proper OpenTelemetry Collector image name
*/}}
{{- define "otel-collector.image" -}}
{{- $registryName := .Values.otel.collector.image.registry -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/eodag-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ otelCollectorConfig: |-
otlp:
protocols:
http:
endpoint: 0.0.0.0:4317
endpoint: 0.0.0.0:4318
# Collect own metrics
prometheus:
config:
Expand Down
8 changes: 4 additions & 4 deletions eodag/rest/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,10 @@ def stac_search(
url = request.state.url
url_root = request.state.url_root

if search_body is None:
body = {}
else:
body = vars(search_body)
if search_body is None:
body = {}
else:
body = vars(search_body)

arguments = dict(request.query_params, **body)
provider = arguments.pop("provider", None)
Expand Down

0 comments on commit 08eee64

Please sign in to comment.