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

Issue #3085710 by Masami, yas: Fix an exception when the AWS error occurs on copying Security Group

parent bc04b782
No related branches found
No related tags found
No related merge requests found
......@@ -140,13 +140,14 @@ class SecurityGroupCopyForm extends SecurityGroupEditForm {
'@label' => $entity->getEntityType()->getLabel(),
'@group_name' => $entity->getGroupName(),
]));
$form_state->setRedirectUrl($entity->toUrl('canonical'));
}
}
else {
$this->messenger->addError($this->t('Unable to update security group.'));
}
$form_state->setRedirectUrl($entity->toUrl('canonical'));
}
/**
......
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