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

Issue #3008736 by Xiaohua Guan, yas: Update the property ami_name of image...

Issue #3008736 by Xiaohua Guan, yas: Update the property ami_name of image when adding an image: removing unnecessary patch file
parent 1ce0f1fe
No related branches found
No related tags found
No related merge requests found
diff --git a/modules/cloud_service_providers/aws_cloud/src/Form/Ec2/ImageCreateForm.php b/modules/cloud_service_providers/aws_cloud/src/Form/Ec2/ImageCreateForm.php
index 98842d8..e2f2890 100644
--- a/modules/cloud_service_providers/aws_cloud/src/Form/Ec2/ImageCreateForm.php
+++ b/modules/cloud_service_providers/aws_cloud/src/Form/Ec2/ImageCreateForm.php
@@ -96,9 +96,9 @@ class ImageCreateForm extends AwsCloudContentForm {
if (isset($result['ImageId'])
&& ($entity->setName($form_state->getValue('name')))
- && ($entity->setImageId($result['ImageId']))
- && ($entity->save())) {
-
+ && ($entity->set('ami_name', $form_state->getValue('name')))
+ && ($entity->setImageId($result['ImageId']))
+ && ($entity->save())) {
$message = $this->t('The @label "%label (@image_id)" has been created.', [
'@label' => $entity->getEntityType()->getLabel(),
'%label' => $entity->label(),
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