Просмотр исходного кода

fix custom kubeconfig agent bug

Alexander Belanger 4 лет назад
Родитель
Сommit
6f2973ef55
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      server/api/api.go

+ 4 - 0
server/api/api.go

@@ -220,6 +220,8 @@ func (app *App) assignProvisionerAgent(sc *config.ServerConf) error {
 		}
 
 		app.ProvisionerAgent = agent
+
+		return nil
 	} else if sc.ProvisionerCluster == "kubeconfig" {
 		return fmt.Errorf(`"kubeconfig" cluster option requires path to kubeconfig`)
 	}
@@ -246,6 +248,8 @@ func (app *App) assignIngressAgent(sc *config.ServerConf) error {
 		}
 
 		app.IngressAgent = agent
+
+		return nil
 	} else if sc.IngressCluster == "kubeconfig" {
 		return fmt.Errorf(`"kubeconfig" cluster option requires path to kubeconfig`)
 	}