mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-11-29 17:01:05 +01:00
proxy: Fix ineffassign error (#447)
`out` variable content after executing `ip route list table` was never used.
This commit is contained in:
parent
abfb705b62
commit
d63c23a5f5
@ -1677,13 +1677,13 @@ func (ln *linuxNetworking) setupRoutesForExternalIPForDSR(serviceInfoMap service
|
||||
}
|
||||
}
|
||||
|
||||
out, err := exec.Command("ip", "route", "list", "table", externalIPRouteTableId).Output()
|
||||
_, err = exec.Command("ip", "route", "list", "table", externalIPRouteTableId).Output()
|
||||
if err != nil {
|
||||
return errors.New("Failed to verify required routing table for external IP's exists. " +
|
||||
"Failed to setup policy routing required for DSR due to " + err.Error())
|
||||
}
|
||||
|
||||
out, err = exec.Command("ip", "rule", "list").Output()
|
||||
out, err := exec.Command("ip", "rule", "list").Output()
|
||||
if err != nil {
|
||||
return errors.New("Failed to verify if `ip rule add prio 32765 from all lookup external_ip` exists due to: " + err.Error())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user