Skip to content

Commit

Permalink
Print the slug size of the droplet in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
lachesis authored and petems committed Nov 21, 2017
1 parent 2bc0dbf commit 671b83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tugboat/middleware/list_droplets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def call(env)
end

public_addr = droplet.networks.v4.find { |address| address.type == 'public' }
say "#{droplet.name} (ip: #{public_addr.ip_address}#{private_ip}, status: #{status_color}#{droplet.status}#{CLEAR}, region: #{droplet.region.slug}, id: #{droplet.id}#{env['include_urls'] ? droplet_id_to_url(droplet.id) : ''})"
say "#{droplet.name} (ip: #{public_addr.ip_address}#{private_ip}, status: #{status_color}#{droplet.status}#{CLEAR}, region: #{droplet.region.slug}, size: #{droplet.size!.slug}, id: #{droplet.id}#{env['include_urls'] ? droplet_id_to_url(droplet.id) : ''})"
end

unless has_one
Expand Down

0 comments on commit 671b83b

Please sign in to comment.