mirror of
https://github.com/rancher/plugins.git
synced 2025-09-12 16:42:19 +00:00
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:
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user