lib/acquia_toolbelt/cli/server.rb in acquia_toolbelt-2.4.0 vs lib/acquia_toolbelt/cli/server.rb in acquia_toolbelt-2.4.1
- old
+ new
@@ -29,11 +29,12 @@
'Type',
'PHP processes',
'Environment state',
'Web state',
'Varnish state',
- 'External IP'
+ 'External IP',
+ 'ELB domain'
]
server_env = AcquiaToolbelt::CLI::API.request "sites/#{subscription}/envs/#{env}/servers"
server_env.each do |server|
row_data = []
@@ -71,9 +72,16 @@
end
# Only load balancers will have the 'external IP' property.
if server['services'] && server['services']['external_ip']
row_data << server['services']['external_ip']
+ else
+ row_data << 'n/a'
+ end
+
+ # Only load balancers will have the 'ELB domain name' property.
+ if server['services'] && server['services']['elb_domain_name']
+ row_data << server['services']['elb_domain_name']
else
row_data << 'n/a'
end
rows << row_data