Skip to content

Commit

Permalink
rhcos/qemu: Readd environment var OPENSHIFT_INSTALL_LIBVIRT_IMAGE
Browse files Browse the repository at this point in the history
This is primarily targeted for local development/testing.
  • Loading branch information
cgwalters committed Jan 7, 2019
1 parent 47adb4e commit b547e64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/rhcos/qemu.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
package rhcos

import (
"os"
"fmt"
)

// QEMU fetches the URL of the latest Red Hat CoreOS release.
func QEMU(build Build) string {
qcowImage, ok := os.LookupEnv("OPENSHIFT_INSTALL_LIBVIRT_IMAGE")
if ok {
return qcowImage
}
return fmt.Sprintf("%s/%s/%s/%s", build.BaseURL, build.Channel, build.Meta.OSTreeVersion, build.Meta.Images.QEMU.Path)
}

0 comments on commit b547e64

Please sign in to comment.