Skip to content

Commit 40e776a

Browse files
committed
config/dell.go: Marshal XML/JSON from SystemConfiguration not dellConfig
1 parent 5049267 commit 40e776a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/dell.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ func (cm *dellVendorConfig) Raw(name, value string, menuPath []string) {
102102
func (cm *dellVendorConfig) Marshal() (string, error) {
103103
switch strings.ToLower(cm.ConfigFormat) {
104104
case "xml":
105-
x, err := xml.Marshal(cm.ConfigData)
105+
x, err := xml.Marshal(cm.ConfigData.SystemConfiguration)
106106
if err != nil {
107107
return "", err
108108
}
109109

110110
return string(x), nil
111111
case "json":
112-
x, err := json.Marshal(cm.ConfigData)
112+
x, err := json.Marshal(cm.ConfigData.SystemConfiguration)
113113
if err != nil {
114114
return "", err
115115
}

0 commit comments

Comments
 (0)