From 45a8ebb61fe47f17d853838a27433c48abd914b9 Mon Sep 17 00:00:00 2001 From: icebaker Date: Thu, 11 May 2023 20:30:23 -0300 Subject: fixing ENV fetch --- controllers/instance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controllers/instance.rb') diff --git a/controllers/instance.rb b/controllers/instance.rb index bee4dfb..e8037e2 100644 --- a/controllers/instance.rb +++ b/controllers/instance.rb @@ -55,7 +55,7 @@ module NanoBot node[index] = inject_environment_variables!(value) end when String - node.start_with?('ENV') ? ENV.fetch(node.sub(/^ENV./, '')) : node + node.start_with?('ENV') ? ENV.fetch(node.sub(/^ENV./, ''), nil) : node else node end -- cgit v1.2.3