Merge pull request #51450 from lichuqiang/typo_fix

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix bug in admission test

tiny bug fix
This commit is contained in:
Kubernetes Submit Queue 2017-10-18 21:40:51 -07:00 committed by GitHub
commit 65d9b4ef0b

View File

@ -404,6 +404,9 @@ func newImagePolicyWebhook(callbackURL string, clientCert, clientKey, ca []byte,
}
defer configFile.Close()
wh, err := NewImagePolicyWebhook(configFile)
if err != nil {
return nil, err
}
return wh.(*imagePolicyWebhook), err
}