Allow primary host even when a specific role has been set

This commit is contained in:
David Heinemeier Hansson
2023-03-08 18:00:13 +01:00
parent 32ab79c0cc
commit 155384472a
2 changed files with 6 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ class Mrsk::Commander
end
def primary_host
specific_hosts&.sole || config.primary_web_host
specific_hosts&.first || config.primary_web_host
end
def hosts