Skip to content
Snippets Groups Projects
Commit 8f487b0f authored by nmani's avatar nmani Committed by Yas Naoi
Browse files

Issue #3075273 by nmani, yas: Refactor Create Image form

parent bfb3ca0a
No related branches found
No related tags found
No related merge requests found
......@@ -45,11 +45,12 @@ class InstanceCreateImageForm extends AwsDeleteForm {
'#title' => $this->t('Image Name'),
'#description' => $this->t('A name for the new image'),
'#required' => TRUE,
'#default_value' => $this->entity->label(),
];
$form['no_reboot'] = [
'#type' => 'checkbox',
'#title' => $this->t('No Reboot'),
'#description' => $this->t("By default, Amazon EC2 attempts to shut down and reboot the instance before creating the image. If the \'No Reboot\' option is set, Amazon EC2 doesn\'t shut down the instance before creating the image. When this option is used, file system integrity on the created image can\'t be guaranteed."),
'#description' => $this->t("By default, Amazon EC2 attempts to shut down and reboot the instance before creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed."),
'#default_value' => FALSE,
];
return $form;
......
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