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

Issue #3399993 by Xiaohua Guan, yas: Hotfix - Fix the errors of phpstan (6) (aws_cloud)

parent fdd68dc6
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ class ElasticIpTest extends AwsCloudTestBase {
// Create Elastic IPs.
$elastic_ips = $this->createElasticIpRandomTestFormData();
$edit = $this->createElasticIpTestFormData(self::AWS_CLOUD_ELASTIC_IP_REPEAT_COUNT);
for ($i = 0, $num = 1; $i < self::AWS_CLOUD_ELASTIC_IP_REPEAT_COUNT; $i++, $num++) {
for ($i = 0, $num = 1; $i < min(count($elastic_ips), self::AWS_CLOUD_ELASTIC_IP_REPEAT_COUNT); $i++, $num++) {
$elastic_ip = $elastic_ips[$i];
// Set up a test Elastic IP.
$this->createElasticIpTestEntity($i, $elastic_ip['Name'], $elastic_ip['PublicIp'], $cloud_context);
......
......@@ -653,4 +653,15 @@ class OpenStackSecurityGroupIpPermissionsTest extends OpenStackTestBase {
return $params;
}
/**
* Check if service type is EC2 or REST.
*
* @return bool
* TRUE if cloud config type is EC2 API, otherwise FALSE.
*/
protected function getEc2ServiceType(): bool {
// OpenStack subnet uses REST only.
return FALSE;
}
}
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