Loading modules/cloud_service_providers/aws_cloud/src/Form/Vpc/VpcPeeringConnectionAcceptForm.php +13 −8 Original line number Diff line number Diff line Loading @@ -44,21 +44,26 @@ class VpcPeeringConnectionAcceptForm extends AwsDeleteUpdateEntityForm { 'VpcPeeringConnectionId' => $this->entity->getVpcPeeringConnectionId(), ]); if (empty($result['VpcPeeringConnection'])) { $form_state->setRedirect("view.{$this->entity->getEntityTypeId()}.list", ['cloud_context' => $this->entity->getCloudContext()]); if ($result === NULL) { $this->processOperationErrorStatus($entity, 'accepted'); return; } if (!empty($result['SendToWorker'])) { $this->processOperationStatus($entity, 'accepted remotely'); return; } else { // Update the VPC. $this->ec2Service->updateVpcPeeringConnections([ 'VpcPeeringConnectionIds' => [$this->entity->getVpcPeeringConnectionId()], ], FALSE); $this->processOperationStatus($entity, 'accepted'); } $this->clearCacheValues($entity->getCacheTags()); $this->dispatchSubmitEvent($entity); $form_state->setRedirect("view.{$this->entity->getEntityTypeId()}.list", ['cloud_context' => $this->entity->getCloudContext()]); } } Loading
modules/cloud_service_providers/aws_cloud/src/Form/Vpc/VpcPeeringConnectionAcceptForm.php +13 −8 Original line number Diff line number Diff line Loading @@ -44,21 +44,26 @@ class VpcPeeringConnectionAcceptForm extends AwsDeleteUpdateEntityForm { 'VpcPeeringConnectionId' => $this->entity->getVpcPeeringConnectionId(), ]); if (empty($result['VpcPeeringConnection'])) { $form_state->setRedirect("view.{$this->entity->getEntityTypeId()}.list", ['cloud_context' => $this->entity->getCloudContext()]); if ($result === NULL) { $this->processOperationErrorStatus($entity, 'accepted'); return; } if (!empty($result['SendToWorker'])) { $this->processOperationStatus($entity, 'accepted remotely'); return; } else { // Update the VPC. $this->ec2Service->updateVpcPeeringConnections([ 'VpcPeeringConnectionIds' => [$this->entity->getVpcPeeringConnectionId()], ], FALSE); $this->processOperationStatus($entity, 'accepted'); } $this->clearCacheValues($entity->getCacheTags()); $this->dispatchSubmitEvent($entity); $form_state->setRedirect("view.{$this->entity->getEntityTypeId()}.list", ['cloud_context' => $this->entity->getCloudContext()]); } }