Skip to content

passing return type to get_edl_token/correcting cmr_env -> edl_env - #17

Merged
hkryeung merged 3 commits into
developfrom
issue/112a
Aug 3, 2026
Merged

passing return type to get_edl_token/correcting cmr_env -> edl_env#17
hkryeung merged 3 commits into
developfrom
issue/112a

Conversation

@DavidVWood44

Copy link
Copy Markdown
Collaborator

No description provided.

@DavidVWood44
DavidVWood44 requested a review from hkryeung July 30, 2026 18:19
@tloubrieu-jpl tloubrieu-jpl moved this to needs:triage in podaac Jul 30, 2026
token_json = get_edl_token(client_id,
edl_user = event.get("edl_user"),
edl_pass = event.get("edl_pass"),
edl_env = event.get("edl_env"),

@hkryeung hkryeung Jul 30, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be safe please keep event.get("edl_env") as cmr_env

edl_env = event.get("cmr_env"),

edl_user = event.get("edl_user"),
edl_pass = event.get("edl_pass"),
edl_env = event.get("cmr_env"),
return_type = event.get("return_type"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, please set event.get("return_type") to event.get("return_type") or "json", since if users do not provide return_type python would freakout with key not found and you did not set a fallback

@hkryeung
hkryeung merged commit 0847fb7 into develop Aug 3, 2026
@tloubrieu-jpl tloubrieu-jpl moved this from needs:triage to closed in podaac Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: closed

Development

Successfully merging this pull request may close these issues.

4 participants