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

Issue #3255413 by Xiaohua Guan, yas: Edit carrier gateway from Cloud...

Issue #3255413 by Xiaohua Guan, yas: Edit carrier gateway from Cloud Orchestrator master to workers (AWS Cloud)
parent da78c249
No related branches found
No related tags found
1 merge request!581Issue #3255413 by Xiaohua Guan, yas: Edit carrier gateway from Cloud...
......@@ -102,7 +102,7 @@ class CarrierGatewayEditForm extends AwsCloudContentForm {
->load($entity->id());
$this->ec2Service->setCloudContext($entity->getCloudContext());
if (!empty($old_carrier_gateway) && $entity->save()) {
if (!empty($old_carrier_gateway)) {
// Update tags.
$tag_map = [];
......@@ -113,6 +113,13 @@ class CarrierGatewayEditForm extends AwsCloudContentForm {
$this->updateNameAndCreatedByTags($entity, $entity->getCarrierGatewayId());
if ($this->isCloudConfigRemote()) {
$this->processOperationStatus($entity, 'updated remotely');
return;
}
$entity->save();
// Update the carrier gateway.
$this->ec2Service->updateCarrierGateways([
'CarrierGatewayId' => $entity->getCarrierGatewayId(),
......
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