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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-12-04 16:04:54 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-12-04 16:04:54 +0300
commit6b76b603ec5296666ec48d2e736cc66648f29504 (patch)
tree3c2cb02406644a0b233ec90fe95aaaab4b93847a /internal/source/domains.go
parent8296ddf86fcc88f4b114ac8609cd9350e025e263 (diff)
Check presence of GitLab API secret when building a domains source
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
}