From 4e6881afdc9fa560a2a68abae5daf062b29c8259 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Tue, 9 Apr 2024 14:49:22 -0400 Subject: [PATCH] Replace `unit_environment_variables` with hash --- app/models/opentofu_worker.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/opentofu_worker.rb b/app/models/opentofu_worker.rb index 2bbf8524..2091240a 100644 --- a/app/models/opentofu_worker.rb +++ b/app/models/opentofu_worker.rb @@ -41,12 +41,12 @@ def enable_systemd_unit end def unit_environment_variables - [ - "DATABASE_HOSTNAME=#{database_configuration[:host]}", - "DATABASE_NAME=#{database_configuration[:database]}", - "DATABASE_USERNAME=#{database_configuration[:username]}", - "MEMCACHED_SERVER=#{::Settings.session.memcache_server}" - ] + { + "DATABASE_HOSTNAME" => database_configuration[:host], + "DATABASE_NAME" => database_configuration[:database], + "DATABASE_USERNAME" => database_configuration[:username], + "MEMCACHED_SERVER" => ::Settings.session.memcache_server + } end def create_podman_secret