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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-18 06:08:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-18 06:08:54 +0300
commit5ee120f46740efac7b8a460d7a92e4da82f4fb0b (patch)
treeb44d3bef04e9db472913289e6b53e58a14cb3e61 /lib/gitlab/database_importers
parent72721699f11187199e89631ce0b5e3d2f7c167e9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/database_importers')
-rw-r--r--lib/gitlab/database_importers/self_monitoring/project/create_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/database_importers/self_monitoring/project/create_service.rb b/lib/gitlab/database_importers/self_monitoring/project/create_service.rb
index 039e85b3f6c..07a4c3bf5e6 100644
--- a/lib/gitlab/database_importers/self_monitoring/project/create_service.rb
+++ b/lib/gitlab/database_importers/self_monitoring/project/create_service.rb
@@ -91,6 +91,8 @@ module Gitlab
end
def create_environment(result)
+ return success(result) if result[:project].environments.exists?
+
environment = ::Environment.new(project_id: result[:project].id, name: 'production')
if environment.save