Skip to content

Commit dec4650

Browse files
committed
chore: fix typos lint error
1 parent ca9bf8d commit dec4650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/validate/security_context_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,14 +1545,14 @@ func createContainerWithExpectation(rc internalapi.RuntimeService,
15451545
}
15461546

15471547
// checkSetHostname checks if the hostname can be set in the container.
1548-
func checkSetHostname(rc internalapi.RuntimeService, containerID string, setable bool) {
1548+
func checkSetHostname(rc internalapi.RuntimeService, containerID string, settable bool) {
15491549
By("set hostname in container to determine whether sethostname is blocked")
15501550

15511551
cmd := []string{"hostname", "ANewHostName"}
15521552
stdout, stderr, err := rc.ExecSync(context.TODO(), containerID, cmd, time.Duration(defaultExecSyncTimeout)*time.Second)
15531553
msg := fmt.Sprintf("cmd %v, stdout %q, stderr %q", cmd, stdout, stderr)
15541554

1555-
if setable {
1555+
if settable {
15561556
Expect(err).NotTo(HaveOccurred(), msg)
15571557
} else {
15581558
Expect(err).To(HaveOccurred(), msg)

0 commit comments

Comments
 (0)