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
No related merge requests found
...@@ -102,7 +102,7 @@ class CarrierGatewayEditForm extends AwsCloudContentForm { ...@@ -102,7 +102,7 @@ class CarrierGatewayEditForm extends AwsCloudContentForm {
->load($entity->id()); ->load($entity->id());
$this->ec2Service->setCloudContext($entity->getCloudContext()); $this->ec2Service->setCloudContext($entity->getCloudContext());
if (!empty($old_carrier_gateway) && $entity->save()) { if (!empty($old_carrier_gateway)) {
// Update tags. // Update tags.
$tag_map = []; $tag_map = [];
...@@ -113,6 +113,13 @@ class CarrierGatewayEditForm extends AwsCloudContentForm { ...@@ -113,6 +113,13 @@ class CarrierGatewayEditForm extends AwsCloudContentForm {
$this->updateNameAndCreatedByTags($entity, $entity->getCarrierGatewayId()); $this->updateNameAndCreatedByTags($entity, $entity->getCarrierGatewayId());
if ($this->isCloudConfigRemote()) {
$this->processOperationStatus($entity, 'updated remotely');
return;
}
$entity->save();
// Update the carrier gateway. // Update the carrier gateway.
$this->ec2Service->updateCarrierGateways([ $this->ec2Service->updateCarrierGateways([
'CarrierGatewayId' => $entity->getCarrierGatewayId(), '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