diff options
author | icebaker <icebaker@proton.me> | 2023-05-11 20:30:23 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-05-11 20:30:23 -0300 |
commit | 45a8ebb61fe47f17d853838a27433c48abd914b9 (patch) | |
tree | d6e7ff5d5c2bcd212394e7bd66d6a720571ac556 /controllers/instance.rb | |
parent | 83180dc3f13e497870e0c23e181bd0c3889d02e2 (diff) |
fixing ENV fetch
Diffstat (limited to 'controllers/instance.rb')
-rw-r--r-- | controllers/instance.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |