Skip to content

Commit

Permalink
generate-release-meta: Translate Azure URL
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Jan 26, 2021
1 parent 89f8a3c commit ae1aa0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cmd-generate-release-meta
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ def append_build(out, input_):
# remove the url as we haven't decided to expose that information publicly yet
arch_dict["media"]["gcp"]["image"].pop("url")

# Azure specific additions
inputaz = input_.get("azure")
if inputaz is not None:
az = arch_dict["media"].setdefault("azure", {})
az["image"] = {
"url": inputaz["url"]
}

# metal specific additions
arch_dict["media"]["metal"] = arch_dict["media"].get("metal", {})
arch_dict["media"]["metal"]["artifacts"] = arch_dict["media"]["metal"].get("artifacts", {})
Expand Down

0 comments on commit ae1aa0b

Please sign in to comment.