Format with gofmt

Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com>
This commit is contained in:
Jaime Caamaño Ruiz
2020-01-13 19:44:40 +01:00
parent cd9d6b28da
commit 963aaf86e6
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ func setSysctl(name, value string) (string, error) {
// Normalize names by using slash as separator
// Sysctl names can use dots or slashes as separator:
// - if dots are used, dots and slashes are interchanged.
// - if slashes are used, slashes and dots are left intact.
// - if slashes are used, slashes and dots are left intact.
// Separator in use is determined by firt ocurrence.
func toNormalName(name string) string {
interchange := false

View File

@ -28,7 +28,7 @@ import (
)
const (
sysctlDotKeyTemplate = "net.ipv4.conf.%s.proxy_arp"
sysctlDotKeyTemplate = "net.ipv4.conf.%s.proxy_arp"
sysctlSlashKeyTemplate = "net/ipv4/conf/%s/proxy_arp"
)