Skip to content

Commit

Permalink
Add supermicro.Unmarshal() to config
Browse files Browse the repository at this point in the history
  • Loading branch information
splaspood committed Jun 3, 2024
1 parent 3db7cec commit 7142d9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/supermicro.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ func (cm *supermicroVendorConfig) Marshal() (string, error) {
}
}

func (cm *supermicroVendorConfig) Unmarshal(cfgData string) (biosConfig *supermicroConfig, err error) {
err = xml.Unmarshal([]byte(cfgData), biosConfig)
return
}

// Generic config options

func (cm *supermicroVendorConfig) EnableTPM() {
Expand Down

0 comments on commit 7142d9c

Please sign in to comment.