Skip to content

Commit

Permalink
throw warning log if org exists
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
  • Loading branch information
buraksekili committed Nov 23, 2023
1 parent 7e0c8e1 commit 4c571d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/bootstrap-post/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ func main() {
exit(log, err)
}

if orgExists {
log.Warnf("Organisation named %v with cname %v exists on Tyk Dashboard",
conf.Tyk.Org.Name,
conf.Tyk.Org.Cname,
)
}

log.Info("Bootstrapping Tyk Dashboard")

if err = tykSvc.CreateOrganisation(); err != nil {
Expand Down

0 comments on commit 4c571d6

Please sign in to comment.