소스 검색

update casing for provisioning metadata field

Alexander Belanger 4 년 전
부모
커밋
6a61130e37
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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 {
 func MetadataFromConf(sc *env.ServerConf, version string) *Metadata {
 	return &Metadata{
 	return &Metadata{
-		// note: provisioning is set in the metadata after the loader is called
-		Provisioning:       false,
+		Provisioning:       sc.ProvisionerServerURL != "",
 		Github:             hasGithubAppVars(sc),
 		Github:             hasGithubAppVars(sc),
 		GithubLogin:        sc.GithubClientID != "" && sc.GithubClientSecret != "" && sc.GithubLoginEnabled,
 		GithubLogin:        sc.GithubClientID != "" && sc.GithubClientSecret != "" && sc.GithubLoginEnabled,
 		BasicLogin:         sc.BasicLoginEnabled,
 		BasicLogin:         sc.BasicLoginEnabled,