Skip to content
Snippets Groups Projects
Commit a39e60b9 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3181601 by Xiaohua Guan, yas: Display a Carrier IP (Instance List View)

parent d096ddd1
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,12 @@ class Ec2BatchOperations {
if (isset($instance['PublicIpAddress'])) {
$public_ip = $instance['PublicIpAddress'];
}
if (!empty($instance['NetworkInterfaces'])) {
if (!empty($instance['NetworkInterfaces'][0]['Association']) && !empty($instance['NetworkInterfaces'][0]['Association']['CarrierIp'])) {
$public_ip = $instance['NetworkInterfaces'][0]['Association']['CarrierIp'];
}
}
if (isset($instance['PublicDnsName'])) {
$entity->setPublicDns($instance['PublicDnsName']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment