Merge pull request #852 from ericchiang/fix-log-level

storage/kubernetes: log INFO level if TPR already exists, not ERROR
This commit is contained in:
rithu leena john 2017-03-15 10:50:00 -07:00 committed by GitHub
commit 7a798844cc

View File

@ -127,7 +127,7 @@ func (cli *client) createThirdPartyResources() (ok bool) {
if err != nil {
switch err {
case storage.ErrAlreadyExists:
cli.logger.Errorf("third party resource already created %s", r.ObjectMeta.Name)
cli.logger.Infof("third party resource already created %s", r.ObjectMeta.Name)
case storage.ErrNotFound:
cli.logger.Errorf("third party resources not found, please enable API group extensions/v1beta1")
ok = false