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 Feb 16, 2021
1 parent 4b07155 commit 9d9fd5b
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: https://github.com/coreos/stream-metadata-go/issues/13
inputaz = input_.get("azure")
if inputaz is not None:
rhcosext = arch_dict.setdefault("rhel-coreos-extensions", {})
rhcosext["azure-disk"] = {
"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 9d9fd5b

Please sign in to comment.