Explorar o código

fix custom kubeconfig agent bug

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
6f2973ef55
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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`)
 	}