Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Fix case statement in helper functions for fwcfg and swtpm
Browse files Browse the repository at this point in the history
A minor bug in the way case statements are written in golang. They either require a fallthrough
or all the cases specified in the same case statement. Chose the latter as the list is not too
big
  • Loading branch information
Prashanth684 committed Jan 29, 2020
1 parent 1bbbad4 commit 071a95e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions platform/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ func (builder *QemuBuilder) EnableUsermodeNetworking(forwardedPort uint) {
// Ignition via the qemu -fw_cfg option.
func (builder *QemuBuilder) supportsFwCfg() bool {
switch builder.Board {
case "s390x-usr":
case "ppc64le-usr":
case "s390x-usr", "ppc64le-usr":
return false
}
return true
Expand All @@ -237,8 +236,7 @@ func (builder *QemuBuilder) supportsSwtpm() bool {
// Yes, this is the same as supportsFwCfg *currently* but
// might not be in the future.
switch builder.Board {
case "s390x-usr":
case "ppc64le-usr":
case "s390x-usr", "ppc64le-usr":
return false
}
return true
Expand Down

0 comments on commit 071a95e

Please sign in to comment.