proxy: Fix ineffassign error (#447)

`out` variable content after executing `ip route list table` was
never used.
This commit is contained in:
Michal Rostecki 2018-05-24 19:29:45 +02:00 committed by Murali Reddy
parent abfb705b62
commit d63c23a5f5

View File

@ -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 { if err != nil {
return errors.New("Failed to verify required routing table for external IP's exists. " + 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()) "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 { 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()) return errors.New("Failed to verify if `ip rule add prio 32765 from all lookup external_ip` exists due to: " + err.Error())
} }