Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/source/domains.go')
-rw-r--r--internal/source/domains.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/source/domains.go b/internal/source/domains.go
index ed1c3de8..85d06152 100644
--- a/internal/source/domains.go
+++ b/internal/source/domains.go
@@ -37,7 +37,7 @@ type Domains struct {
// not initialize `dm` as we later check the readiness by comparing it with a
// nil value.
func NewDomains(config Config) (*Domains, error) {
- if len(config.GitlabServerURL()) == 0 {
+ if len(config.GitlabServerURL()) == 0 || len(config.GitlabAPISecret()) == 0 {
return &Domains{disk: disk.New()}, nil
}