Explorar el Código

update casing for provisioning metadata field

Alexander Belanger hace 4 años
padre
commit
6a61130e37
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      api/server/shared/config/metadata.go

+ 1 - 2
api/server/shared/config/metadata.go

@@ -16,8 +16,7 @@ type Metadata struct {
 
 func MetadataFromConf(sc *env.ServerConf, version string) *Metadata {
 	return &Metadata{
-		// note: provisioning is set in the metadata after the loader is called
-		Provisioning:       false,
+		Provisioning:       sc.ProvisionerServerURL != "",
 		Github:             hasGithubAppVars(sc),
 		GithubLogin:        sc.GithubClientID != "" && sc.GithubClientSecret != "" && sc.GithubLoginEnabled,
 		BasicLogin:         sc.BasicLoginEnabled,