Skip to content

Commit

Permalink
Merge pull request #1941 from namreg/fix-read-certs
Browse files Browse the repository at this point in the history
Return read bytes while reading certs
  • Loading branch information
k8s-ci-robot authored Apr 23, 2019
2 parents 1467950 + d2aa9a4 commit 4e06750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertical-pod-autoscaler/pkg/admission-controller/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func readFile(filePath string) []byte {
return nil
}
klog.Infof("Successfully read %d bytes from %v", count, filePath)
return res
return res[:count]
}

func initCerts(config certsConfig) certsContainer {
Expand Down

0 comments on commit 4e06750

Please sign in to comment.