Skip to content

Commit

Permalink
Filter correctly for empty destinations
Browse files Browse the repository at this point in the history
An empty destination should only filter container with empty
destination, not pick up all containers.

Fixes: #1184
  • Loading branch information
djmb committed Nov 4, 2024
1 parent 685312c commit 2f59a43
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion lib/kamal/commands/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def extract_version_from_name

def filters(statuses: nil)
[ "label=service=#{config.service}" ].tap do |filters|
filters << "label=destination=#{config.destination}" if config.destination
filters << "label=destination=#{config.destination}"
filters << "label=role=#{role}" if role
statuses&.each do |status|
filters << "status=#{status}"
Expand Down
Loading

0 comments on commit 2f59a43

Please sign in to comment.