Comments

liuchanggang’s picture

liuchanggang created an issue.

image

liuchanggang’s picture

Status: Active » Needs review
StatusFileSize
new1.9 KB
yas’s picture

Issue summary: View changes
Status: Needs review » Needs work

@liuchanggang

Thank you for the refactoring.

+++ b/modules/cloud_service_providers/aws_cloud/src/Form/Ec2/InstanceCreateImageForm.php
@@ -15,7 +15,7 @@ class InstanceCreateImageForm extends AwsDeleteForm {
+    return $this->t('Create an image for instance %name (%instance_id)', [

Change to @instance_id.

liuchanggang’s picture

Status: Needs work » Needs review
StatusFileSize
new1.96 KB

@yas,
Thanks for review. I have updated it.

yas’s picture

Status: Needs review » Needs work

@liuchanggang

Thank you for the update.

+++ b/modules/cloud_service_providers/aws_cloud/src/Form/Ec2/InstanceCreateImageForm.php
@@ -15,8 +15,8 @@ class InstanceCreateImageForm extends AwsDeleteForm {
+      '@instance_id' => $entity->getInstanceId(),

This should be

      '%name' => $entity->label(),
      '@instance_id' => $entity->getInstanceId()

,

liuchanggang’s picture

Status: Needs work » Needs review
StatusFileSize
new1.96 KB

Updated. Thanks.

yas’s picture

Status: Needs review » Needs work

@liuchanggang

Thank you for the update.

+++ b/modules/cloud_service_providers/aws_cloud/src/Form/Ec2/InstanceCreateImageForm.php
@@ -40,14 +40,20 @@ class InstanceCreateImageForm extends AwsDeleteForm {
+    $form['instance'] = [
...
+    $form['instance']['image_name'] = [
...
+    $form['instance']['no_reboot'] = [

$form['image'] is appropriate rather than $form['instance']?

liuchanggang’s picture

Status: Needs work » Needs review
StatusFileSize
new1.95 KB

@yas,
Thanks. I have updated code.

yas’s picture

Status: Needs review » Reviewed & tested by the community

@liuchanggang

Thank you for the update. It looks good to me now. I'll merge the patch to 8.x-1.x, 8.x-2.x and 3.x and close this issue as Fixed.

  • yas committed f94c990 on 8.x-1.x authored by liuchanggang
    Issue #3165425 by liuchanggang, yas: Fix the status message when...

  • yas committed 59b0eff on 8.x-2.x authored by liuchanggang
    Issue #3165425 by liuchanggang, yas: Fix the status message when...

  • yas committed 1ce7e5e on 3.x authored by liuchanggang
    Issue #3165425 by liuchanggang, yas: Fix the status message when...
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.