diff --git a/cmd/boot-script-service/boot_data.go b/cmd/boot-script-service/boot_data.go index 4d7a4f8..d9ebffb 100644 --- a/cmd/boot-script-service/boot_data.go +++ b/cmd/boot-script-service/boot_data.go @@ -59,10 +59,10 @@ const ( type BootDataStore struct { Params string `json:"params,omitempty"` - Kernel string `json:"kernel,omitempty"` // Image storage key - Initrd string `json:"initrd,omitempty"` // Image storage key - CloudInit bssTypes.CloudInit `json:"cloud-init,omitempty"` // Image storage key - ReferralToken string `json:"referral-token,omitempty` // UUID + Kernel string `json:"kernel,omitempty"` // Image storage key + Initrd string `json:"initrd,omitempty"` // Image storage key + CloudInit bssTypes.CloudInit `json:"cloud-init,omitempty"` // Image storage key + ReferralToken string `json:"referral-token,omitempty"` // UUID } type ImageData struct { diff --git a/cmd/boot-script-service/serviceAPI.go b/cmd/boot-script-service/serviceAPI.go index 21be332..98cf3a7 100644 --- a/cmd/boot-script-service/serviceAPI.go +++ b/cmd/boot-script-service/serviceAPI.go @@ -41,8 +41,8 @@ type serviceStatus struct { } type storageBackend struct { - Name string `json:"name",omitempty` - Status string `json:"status",omitempty` + Name string `json:"name,omitempty"` + Status string `json:"status,omitempty"` } func serviceStatusAPI(w http.ResponseWriter, req *http.Request) { diff --git a/cmd/boot-script-service/sm.go b/cmd/boot-script-service/sm.go index c2a67a3..eba00ff 100644 --- a/cmd/boot-script-service/sm.go +++ b/cmd/boot-script-service/sm.go @@ -369,7 +369,7 @@ func getStateFromHSM() *SMData { type myCompEndpt struct { ID string `json:"ID"` Enabled *bool `json:"Enabled"` - RfEndpointID string `json: "RedfishEndpointID"` + RfEndpointID string `json:"RedfishEndpointID"` } type myCompEndptArray struct { CompEndpts []*myCompEndpt `json:"ComponentEndpoints"` diff --git a/go.mod b/go.mod index cbfd4ed..45eced8 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/OpenCHAMI/bss go 1.23 toolchain go1.24.1 + require ( github.com/Cray-HPE/hms-base v1.15.1 github.com/Cray-HPE/hms-hmetcd v1.11.0