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

Issue #3254865 by Xiaohua Guan, yas: Edit internet gateway from Cloud...

Issue #3254865 by Xiaohua Guan, yas: Edit internet gateway from Cloud Orchestrator master to workers (AWS Cloud)
parent b47c5a6f
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ class InternetGatewayEditForm extends AwsCloudContentForm {
->load($entity->id());
$this->ec2Service->setCloudContext($entity->getCloudContext());
if (!empty($old_internet_gateway) && $entity->save()) {
if (!empty($old_internet_gateway)) {
// Update tags.
$tag_map = [];
......@@ -113,6 +113,13 @@ class InternetGatewayEditForm extends AwsCloudContentForm {
$this->updateNameAndCreatedByTags($entity, $entity->getInternetGatewayId());
if ($this->isCloudConfigRemote()) {
$this->processOperationStatus($entity, 'updated remotely');
return;
}
$entity->save();
// Update the internet gateway.
$this->ec2Service->updateInternetGateways([
'InternetGatewayId' => $entity->getInternetGatewayId(),
......
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