Skip to content
Snippets Groups Projects
Commit 933c3a01 authored by Takumaru Sekine's avatar Takumaru Sekine Committed by Yas Naoi
Browse files

Issue #3339774 by sekinet, yas: Fix an error while validating the input...

Issue #3339774 by sekinet, yas: Fix an error while validating the input provided for the CreateVpcPeeringConnection operation: [VpcId] is missing and is a required parameter'
parent 0562e3c9
No related branches found
No related tags found
3 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA
......@@ -793,6 +793,10 @@ class Ec2Service extends CloudServiceBase implements Ec2ServiceInterface {
* {@inheritdoc}
*/
public function createVpcPeeringConnection(array $params = [], array $credentials = []): ?ResultInterface {
if (!empty($params['DryRun'])) {
// Set required parameters if missing.
$params += ['VpcId' => $this->random->name(32, TRUE)];
}
return $this->execute('CreateVpcPeeringConnection', $params, $credentials);
}
......@@ -800,6 +804,10 @@ class Ec2Service extends CloudServiceBase implements Ec2ServiceInterface {
* {@inheritdoc}
*/
public function acceptVpcPeeringConnection(array $params = []): ?ResultInterface {
if (!empty($params['DryRun'])) {
// Set required parameters if missing.
$params += ['VpcPeeringConnectionId' => $this->random->name(32, TRUE)];
}
return $this->execute('AcceptVpcPeeringConnection', $params);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment