tuning, vrf: fix test json unmarshal

A signature change from libcni v1.3.0.

Signed-off-by: Casey Callendrello <c1@caseyc.net>
This commit is contained in:
Casey Callendrello
2025-04-14 17:13:04 +02:00
parent c5861e7003
commit 318c44b4ec
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ func buildOneConfig(cniVersion string, orig *TuningConf, prevResult types.Result
// Ensure every config uses the same name and version
config := make(map[string]interface{})
confBytes, err := json.Marshal(orig)
confBytes, err := json.Marshal(*orig)
if err != nil {
return nil, err
}

View File

@@ -48,7 +48,7 @@ func buildOneConfig(name, cniVersion string, orig *VRFNetConf, prevResult types.
// Ensure every config uses the same name and version
config := make(map[string]interface{})
confBytes, err := json.Marshal(orig)
confBytes, err := json.Marshal(*orig)
if err != nil {
return nil, nil, err
}