Skip to content

Commit

Permalink
lmp: Fix static delta url for meds
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Doan <[email protected]>
  • Loading branch information
doanac committed Nov 1, 2023
1 parent 7461fb6 commit 1ee90ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lmp/static_deltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from helpers import (
Progress,
cmd,
fio_dnsbase,
status,
secret
)
Expand Down Expand Up @@ -54,7 +55,8 @@ def save_delta_stats(delta_stats: dict, out_dir: str):


def upload_delta_stats(factory: str, delta_stats: dict, tok_secret_name: str):
ostreehub_uri = f"https://api.foundries.io/ota/ostreehub/{factory}/v2/repos/lmp/delta-stats"
base = fio_dnsbase()
ostreehub_uri = f"https://api.{base}/ota/ostreehub/{factory}/v2/repos/lmp/delta-stats"
for to_sha, s in delta_stats.items():
status(f"Uploading delta stats for {to_sha}...")
r = requests.put(ostreehub_uri,
Expand Down

0 comments on commit 1ee90ed

Please sign in to comment.