From 7142d9c974294f945a09c19649612c1220bccc2a Mon Sep 17 00:00:00 2001 From: "James W. Brinkerhoff" Date: Thu, 30 May 2024 15:21:33 -0400 Subject: [PATCH] Add supermicro.Unmarshal() to config --- config/supermicro.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/supermicro.go b/config/supermicro.go index 25fd02e..d802e73 100644 --- a/config/supermicro.go +++ b/config/supermicro.go @@ -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() {