Skip to content

Commit 2e2a6d6

Browse files
author
OpenShift Bot
authored
Merge pull request #13073 from soltysh/bug1425706_1.5
Merged by openshift-bot
2 parents 4a74666 + 32f4837 commit 2e2a6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/admin/prune/images.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ func getClients(f *clientcmd.Factory, caBundle string) (*client.Client, kclients
488488

489489
// if the user specified a CA on the command line, add it to the
490490
// client config's CA roots
491-
if len(caBundle) > 0 {
491+
if tlsConfig != nil && len(caBundle) > 0 {
492492
data, err := ioutil.ReadFile(caBundle)
493493
if err != nil {
494494
return nil, nil, nil, err

0 commit comments

Comments
 (0)