summaryrefslogtreecommitdiff
path: root/pkg/machine/fcos.go
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2021-09-22 14:38:24 -0400
committerAshley Cui <acui@redhat.com>2021-09-22 14:42:44 -0400
commit3bd3c62134f76397a96505e2cfb465aad5efd221 (patch)
tree2d73cb0826c0d799bd51f3b07dcc22bb94592572 /pkg/machine/fcos.go
parentf93500810800e85af4de88b99efeaea989db9025 (diff)
downloadpodman-3bd3c62134f76397a96505e2cfb465aad5efd221.tar.gz
podman-3bd3c62134f76397a96505e2cfb465aad5efd221.tar.bz2
podman-3bd3c62134f76397a96505e2cfb465aad5efd221.zip
Fix machine image
Make sure setting machine image to `testing` pulls down the testing stream, and not the next stream Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'pkg/machine/fcos.go')
-rw-r--r--pkg/machine/fcos.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/machine/fcos.go b/pkg/machine/fcos.go
index cfcadeb02..99197ac0e 100644
--- a/pkg/machine/fcos.go
+++ b/pkg/machine/fcos.go
@@ -139,6 +139,8 @@ func getFCOSDownload(imageStream string) (*fcosDownloadInfo, error) {
)
switch imageStream {
case "testing", "":
+ streamType = fedoracoreos.StreamTesting
+ case "next":
streamType = fedoracoreos.StreamNext
case "stable":
streamType = fedoracoreos.StreamStable