Skip to content
Snippets Groups Projects
Commit 85fa8ba3 authored by Masami  Suzuki's avatar Masami Suzuki Committed by Yas Naoi
Browse files

Issue #3071497 by Masami, yas: Fix the bugs in ElasticIpDisassociateForm

parent 3b0dfa7b
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Markup;
/**
* Disassociate elastic ip address form.
......@@ -41,9 +42,9 @@ class ElasticIpDisassociateForm extends AwsDeleteForm {
);
$msg = '<h2>Elastic IP Information:</h2>';
$msg .= $this->t('<ul><li>Instance Id: :instance_id</li><li>Network Id: @network_id</li></ul>',
$msg .= $this->t('<ul><li>Instance Id: @instance_id</li><li>Network Id: @network_id</li></ul>',
[
':instance_id' => $instance_link['#markup'],
'@instance_id' => Markup::create($instance_link['#markup']),
'@network_id' => $network_interface_id,
]
);
......@@ -117,7 +118,6 @@ class ElasticIpDisassociateForm extends AwsDeleteForm {
$instances = $this->entityTypeManager->getStorage('aws_cloud_instance')
->loadByProperties([
'instance_id' => $instance_id,
'cloud_context' => $this->entity->getCloudContext(),
]);
return array_shift($instances);
}
......
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