diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/database_importers/self_monitoring/project/create_service.rb | 2 |
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 |