mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
vpcagent: ovn: cmp: generate clean args in a single batch
This commit is contained in:
@@ -36,7 +36,7 @@ func cmp(db *ovnutil.OVNNorthbound, ocver string, irows ...ovnutil.IRow) (bool,
|
||||
if len(irowsFound) == len(irows) {
|
||||
return true, nil
|
||||
}
|
||||
args := ovnutil.OvnNbctlArgsDestroy(irowsFound)
|
||||
args = append(args, ovnutil.OvnNbctlArgsDestroy(irowsDiff)...)
|
||||
irowsCleanup := append(irowsFound, irowsDiff...)
|
||||
args := ovnutil.OvnNbctlArgsDestroy(irowsCleanup)
|
||||
return false, args
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user