Skip to content

Commit cac2ec6

Browse files
committed
fix the go 1.10 unit test failures
1 parent 83ac5ae commit cac2ec6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: pkg/cmd/server/start/start_node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func execKubelet(kubeletArgs []string) error {
419419
for i, s := range os.Args {
420420
if s == "--vmodule" {
421421
if i+1 < len(os.Args) {
422-
args = append(args, fmt.Sprintf("--vmodule=", os.Args[i+1]))
422+
args = append(args, fmt.Sprintf("--vmodule=%q", os.Args[i+1]))
423423
break
424424
}
425425
}

Diff for: pkg/oc/cli/describe/describer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ func describeSecurityContextConstraints(scc *securityapi.SecurityContextConstrai
18731873

18741874
fmt.Fprintf(out, "Settings:\t\n")
18751875
fmt.Fprintf(out, " Allow Privileged:\t%t\n", scc.AllowPrivilegedContainer)
1876-
fmt.Fprintf(out, " Allow Privilege Escalation:\t%t\n", scc.AllowPrivilegeEscalation)
1876+
fmt.Fprintf(out, " Allow Privilege Escalation:\t%v\n", scc.AllowPrivilegeEscalation)
18771877
fmt.Fprintf(out, " Default Add Capabilities:\t%s\n", capsToString(scc.DefaultAddCapabilities))
18781878
fmt.Fprintf(out, " Required Drop Capabilities:\t%s\n", capsToString(scc.RequiredDropCapabilities))
18791879
fmt.Fprintf(out, " Allowed Capabilities:\t%s\n", capsToString(scc.AllowedCapabilities))

0 commit comments

Comments
 (0)