Skip to content

Commit

Permalink
Fix key for yaml/json output
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Apr 17, 2024
1 parent be9f3e3 commit 096b28a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/kairos-io/kairos-sdk

go 1.19
go 1.21

toolchain go1.22.2

// This versions require go1.20
replace (
Expand Down Expand Up @@ -72,8 +74,8 @@ require (
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/itchyny/timefmt-go v0.1.5 // indirect
github.com/jaypipes/pcidb v1.0.0 // indirect
github.com/kr/pretty v0.2.1 // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/kr/pretty v0.2.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/lithammer/fuzzysearch v1.1.8 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand Down
2 changes: 1 addition & 1 deletion signatures/signatures.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func isValidSignature(sign util.EFIGUID) bool {
// GetEfiCertsCommonNames returns a simple list of the Common names of the certs
func GetEfiCertsCommonNames() types.EfiCerts {
var data types.EfiCerts
certs, _ := GetAllCerts()
certs, _ := GetAllCerts() // Ignore errors here, we dont care about them
for _, c := range certs.PK {
data.PK = append(data.PK, c.Issuer.CommonName)
}
Expand Down
2 changes: 1 addition & 1 deletion state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type Kairos struct {
Flavor string `yaml:"flavor" json:"flavor"`
Version string `yaml:"version" json:"version"`
Init string `yaml:"init" json:"init"`
EfiCerts types.EfiCerts `yaml:"efi-certs,omitempty" json:"efi-certs,omitempty"`
EfiCerts types.EfiCerts `yaml:"eficerts,omitempty" json:"eficerts,omitempty"`
}

type Runtime struct {
Expand Down

0 comments on commit 096b28a

Please sign in to comment.