Skip to content

Commit

Permalink
Merge pull request #63 from sudhir-kelkar/convertBooleanToString
Browse files Browse the repository at this point in the history
Marshalling boolean value to environment varaible of type string

(cherry picked from commit 007534e)
  • Loading branch information
agrare authored and Fryguy committed Jul 9, 2024
1 parent 837ab53 commit bd9dd7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/opentofu_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def configure_service_worker_deployment(definition)
env_var_array.detect { |env| env[:name] == "HOME" }&.[]=(:value, "/home/node")

definition[:spec][:template][:spec][:containers][0][:env] << {:name => "LOG4JS_LEVEL", :value => Settings.log.level_embedded_terraform}
definition[:spec][:template][:spec][:containers][0][:env] << {:name => "TF_OFFLINE", :value => worker_settings[:opentofu_offline]}
definition[:spec][:template][:spec][:containers][0][:env] << {:name => "TF_OFFLINE", :value => worker_settings[:opentofu_offline].to_s}

# these volume mounts are require by terraform runner to create the stack, mentioned it as {} so that it can be writable
definition[:spec][:template][:spec][:containers].first[:volumeMounts] << {:name => "terraform-bin-empty", :mountPath => "/home/node/terraform/bin"}
Expand Down

0 comments on commit bd9dd7f

Please sign in to comment.