Merge pull request #813 from basecamp/handle-no-env-tags

Don't blow up if there are no env tags
This commit is contained in:
Donal McBreen
2024-05-20 10:58:11 +01:00
committed by GitHub

View File

@@ -234,7 +234,11 @@ class Kamal::Configuration
end
def env_tags
raw_config.env["tags"].collect { |name, config| Kamal::Configuration::Env::Tag.new(name, config: config) }
@env_tags ||= if (tags = raw_config.env["tags"])
tags.collect { |name, config| Kamal::Configuration::Env::Tag.new(name, config: config) }
else
[]
end
end
def env_tag(name)