diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-25 06:09:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-25 06:09:30 +0300 |
commit | c916c6f79b74dd3daf9bdbd7a9fdcb545237d46e (patch) | |
tree | a4022943f6680d6ab6d72828cd11b9a10fc5b50c /app | |
parent | 802594d2a7772ed16b844d0a7b91352fa6c573c9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/models/terraform/state_version.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/terraform/state_version.rb b/app/models/terraform/state_version.rb index d5e315d18a1..eff44485401 100644 --- a/app/models/terraform/state_version.rb +++ b/app/models/terraform/state_version.rb @@ -14,5 +14,11 @@ module Terraform mount_file_store_uploader VersionedStateUploader delegate :project_id, :uuid, to: :terraform_state, allow_nil: true + + def local? + file_store == ObjectStorage::Store::LOCAL + end end end + +Terraform::StateVersion.prepend_if_ee('EE::Terraform::StateVersion') |