Skip to content
Snippets Groups Projects
Commit de7c62bf authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

Issue #3037486 by baldwinlouie, yas: Error from elastic ip thrown on InstanceEditForm

parent 7cb6aefc
No related branches found
No related tags found
No related merge requests found
......@@ -177,15 +177,17 @@ class InstanceEditForm extends AwsCloudContentForm {
}
}
else {
$form['network']['public_ip'] = $this->entityLinkRenderer->renderFormElements(
$entity->getPublicIp(),
'aws_cloud_elastic_ip',
'public_ip',
[
'#title' => $this->t('Elastic IP: '),
],
$current_elastic_ip->getName()
);
if ($current_elastic_ip != FALSE) {
$form['network']['public_ip'] = $this->entityLinkRenderer->renderFormElements(
$entity->getPublicIp(),
'aws_cloud_elastic_ip',
'public_ip',
[
'#title' => $this->t('Elastic IP: '),
],
$current_elastic_ip->getName()
);
}
}
}
......
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