Skip to content

Commit 248a7a1

Browse files
committed
Fix Met Office raw key file parsing
1 parent 6842db8 commit 248a7a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

publishers/met_office_datahub/met_office_datahub_publisher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _read_secret_file(path_value: str | None) -> str | None:
6161
line = raw_line.strip()
6262
if not line or line.startswith("#"):
6363
continue
64-
if "=" in line:
64+
if line.startswith(("MET_OFFICE_LAND_OBSERVATIONS_API_KEY=", "MET_OFFICE_DATAHUB_API_KEY=")):
6565
_, line = line.split("=", 1)
6666
line = line.strip()
6767
return line.strip().strip('"').strip("'")

0 commit comments

Comments
 (0)