diff --git a/dps.rb b/dps.rb index 3be5699..f162246 100755 --- a/dps.rb +++ b/dps.rb @@ -21,7 +21,7 @@ class Container set :ouroboros, @data[:Labels][:"com.centurylinklabs.watchtower.enable"]=="true" ? "✓" : "" set :name, @data[:Names].first[1..-1] - vh = @data[:Labels][:"nginx_virtual_host"]&.split(",")&.collect(&:strip) + vh = @data[:Labels][:"nginx_virtual_host"]&.split(",")&.map{|h| h.split("@").first.strip} if vh.nil? || vh.count==0 vh = "" elsif vh.count==1