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

Issue #3254475 by Xiaohua Guan, yas: Edit vpc peering connection from Cloud...

Issue #3254475 by Xiaohua Guan, yas: Edit vpc peering connection from Cloud Orchestrator master to workers (AWS Cloud)
parent 49760f55
No related branches found
No related tags found
1 merge request!568Issue #3254475 by Xiaohua Guan, yas: Edit vpc peering connection from Cloud...
......@@ -165,7 +165,7 @@ class VpcPeeringConnectionEditForm extends AwsCloudContentForm {
->load($entity->id());
$this->ec2Service->setCloudContext($entity->getCloudContext());
if (!empty($old_vpc_peering_connection) && $entity->save()) {
if (!empty($old_vpc_peering_connection)) {
// Update tags.
$tag_map = [];
......@@ -176,6 +176,13 @@ class VpcPeeringConnectionEditForm extends AwsCloudContentForm {
$this->updateNameAndCreatedByTags($entity, $entity->getVpcPeeringConnectionId());
if ($this->isCloudConfigRemote()) {
$this->processOperationStatus($entity, 'updated remotely');
return;
}
$entity->save();
// Update the VPC peering connection.
$this->ec2Service->updateVpcPeeringConnections([
'VpcPeeringConnectionId' => $entity->getVpcPeeringConnectionId(),
......
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