Skip to content

Commit

Permalink
Fix logic to detect if a droplet has a private IP
Browse files Browse the repository at this point in the history
  • Loading branch information
petems committed Dec 1, 2015
1 parent e68fae0 commit 0ae1d2f
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 @@ -15,7 +15,7 @@ def call(env)

private_addr = droplet.networks.v4.detect { |address| address.type == 'private' }
if private_addr
private_ip = ", privateip: #{private_addr.ip_address}"
private_ip = ", private_ip: #{private_addr.ip_address}"
end

if droplet.status == "active"
Expand Down

0 comments on commit 0ae1d2f

Please sign in to comment.