mirror of
https://github.com/rancher/plugins.git
synced 2025-09-14 02:55:08 +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
|
// Ensure every config uses the same name and version
|
||||||
config := make(map[string]interface{})
|
config := make(map[string]interface{})
|
||||||
|
|
||||||
confBytes, err := json.Marshal(orig)
|
confBytes, err := json.Marshal(*orig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
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
|
// Ensure every config uses the same name and version
|
||||||
config := make(map[string]interface{})
|
config := make(map[string]interface{})
|
||||||
|
|
||||||
confBytes, err := json.Marshal(orig)
|
confBytes, err := json.Marshal(*orig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user