Skip to content

Commit

Permalink
removeroute used sprint instead of sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
rakelkar committed Sep 30, 2017
1 parent 854d5e9 commit f8ec230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netroute/netroute.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (shell *shell) GetNetRoutes(linkIndex int, destinationSubnet *net.IPNet) ([
}

func (shell *shell) RemoveNetRoute(linkIndex int, destinationSubnet *net.IPNet, gatewayAddress net.IP) error {
removeRouteCmdLine := fmt.Sprint("remove-netroute -InterfaceIndex %v -DestinationPrefix %v -NextHop %v -Verbose", linkIndex, destinationSubnet.String(), gatewayAddress.String())
removeRouteCmdLine := fmt.Sprintf("remove-netroute -InterfaceIndex %v -DestinationPrefix %v -NextHop %v -Verbose", linkIndex, destinationSubnet.String(), gatewayAddress.String())
_, err := shell.runScript(removeRouteCmdLine)

return err
Expand Down

0 comments on commit f8ec230

Please sign in to comment.