aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/backends/terraform_aws/backend_methods.rb2
-rw-r--r--app/models/backends/terraform_aws/mini_environment_methods.rb2
-rw-r--r--app/models/backends/terraform_libvirt/backend_methods.rb2
-rw-r--r--app/models/backends/terraform_libvirt/mini_environment_methods.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/app/models/backends/terraform_aws/backend_methods.rb b/app/models/backends/terraform_aws/backend_methods.rb
index 5ade46c..ca2bd83 100644
--- a/app/models/backends/terraform_aws/backend_methods.rb
+++ b/app/models/backends/terraform_aws/backend_methods.rb
@@ -80,7 +80,7 @@ module Backends::TerraformAws::BackendMethods
def within_backend_terraform_working_directory(&block)
with_advisory_lock(
- "aws_backend_terraform_working_directory/#{id}"
+ "terraform"
) do
TerraformWorkingDirectory.new(
terraform_state_id,
diff --git a/app/models/backends/terraform_aws/mini_environment_methods.rb b/app/models/backends/terraform_aws/mini_environment_methods.rb
index 36fd70d..d0a8ab5 100644
--- a/app/models/backends/terraform_aws/mini_environment_methods.rb
+++ b/app/models/backends/terraform_aws/mini_environment_methods.rb
@@ -82,7 +82,7 @@ module Backends::TerraformAws::MiniEnvironmentMethods
def within_terraform_working_directory(mini_environment, &block)
with_advisory_lock(
- "aws_mini_environment_terraform_working_directory/#{mini_environment.id}"
+ "terraform"
) do
TerraformWorkingDirectory.new(
mini_environment_state_id(mini_environment),
diff --git a/app/models/backends/terraform_libvirt/backend_methods.rb b/app/models/backends/terraform_libvirt/backend_methods.rb
index 06b89e4..d14affa 100644
--- a/app/models/backends/terraform_libvirt/backend_methods.rb
+++ b/app/models/backends/terraform_libvirt/backend_methods.rb
@@ -56,7 +56,7 @@ module Backends::TerraformLibvirt::BackendMethods
def within_backend_terraform_working_directory(&block)
with_advisory_lock(
- "libvirt_backend_terraform_working_directory/#{id}"
+ "terraform"
) do
TerraformWorkingDirectory.new(
terraform_state_id,
diff --git a/app/models/backends/terraform_libvirt/mini_environment_methods.rb b/app/models/backends/terraform_libvirt/mini_environment_methods.rb
index 9b68d49..ef2b4c1 100644
--- a/app/models/backends/terraform_libvirt/mini_environment_methods.rb
+++ b/app/models/backends/terraform_libvirt/mini_environment_methods.rb
@@ -79,7 +79,7 @@ module Backends::TerraformLibvirt::MiniEnvironmentMethods
def within_terraform_working_directory(mini_environment, &block)
with_advisory_lock(
- "libvirt_mini_environment_terraform_working_directory/#{mini_environment.id}"
+ "terraform"
) do
TerraformWorkingDirectory.new(
mini_environment_state_id(mini_environment),